[Python-ideas] Updating PEP 315: do-while loops
Ben Finney
ben+python at benfinney.id.au
Tue Apr 28 01:50:10 CEST 2009
Mathias Panzenböck <grosser.meister.morti at gmx.net>
writes:
> Why not:
>
> loop:
> ...
> if cond: break
>
>
> where "loop:" is short for "while True:".
Already addressed. We already have a way of spelling that, which is
‘while True:’. There needs to be some significant gain to introduce a new
spelling for the same thing.
--
\ “Good morning, Pooh Bear”, said Eeyore gloomily. “If it is a |
`\ good morning”, he said. “Which I doubt”, said he. —A. A. Milne, |
_o__) _Winnie-the-Pooh_ |
Ben Finney
More information about the Python-ideas
mailing list