Reject PEP 315.
This commit is contained in:
parent
b1126e367c
commit
78083574cd
20
pep-0315.txt
20
pep-0315.txt
|
@ -4,7 +4,7 @@ Version: $Revision$
|
||||||
Last-Modified: $Date$
|
Last-Modified: $Date$
|
||||||
Author: Raymond Hettinger <python@rcn.com>
|
Author: Raymond Hettinger <python@rcn.com>
|
||||||
W Isaac Carroll <icarroll@pobox.com>
|
W Isaac Carroll <icarroll@pobox.com>
|
||||||
Status: Deferred
|
Status: Rejected
|
||||||
Type: Standards Track
|
Type: Standards Track
|
||||||
Content-Type: text/plain
|
Content-Type: text/plain
|
||||||
Created: 25-Apr-2003
|
Created: 25-Apr-2003
|
||||||
|
@ -21,19 +21,25 @@ Abstract
|
||||||
|
|
||||||
Notice
|
Notice
|
||||||
|
|
||||||
Deferred; see
|
Rejected; see
|
||||||
|
http://mail.python.org/pipermail/python-ideas/2013-June/021610.html
|
||||||
|
|
||||||
|
This PEP has been deferred since 2006; see
|
||||||
http://mail.python.org/pipermail/python-dev/2006-February/060718.html
|
http://mail.python.org/pipermail/python-dev/2006-February/060718.html
|
||||||
|
|
||||||
Subsequent efforts to revive the PEP in April 2009 did not
|
Subsequent efforts to revive the PEP in April 2009 did not
|
||||||
meet with success because no syntax emerged that could
|
meet with success because no syntax emerged that could
|
||||||
compete with a while-True and an inner if-break.
|
compete with the following form:
|
||||||
|
|
||||||
A syntax was found for a basic do-while loop but it found
|
while True:
|
||||||
had little support because the condition was at the top:
|
<setup code>
|
||||||
|
if not <condition>:
|
||||||
do ... while <cond>:
|
break
|
||||||
<loop body>
|
<loop body>
|
||||||
|
|
||||||
|
Users of the language are advised to use that form when a do-while
|
||||||
|
loop would have been appropriate.
|
||||||
|
|
||||||
|
|
||||||
Motivation
|
Motivation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue