[Python-ideas] "While" suggestion
Chris Rebert
cvrebert at gmail.com
Thu Jul 3 22:39:25 CEST 2008
On Thu, Jul 3, 2008 at 1:34 PM, Bruce Leban <bruce at leapyear.org> wrote:
> And it doesn't do that! It only replaces that when <setup> is a simple
> assignment.
>
> PEP 315 suggested:
>
> do:
> <setup>
> while <expression>:
> <stuff>
>
> which does cover the general scenario.
The "while as" proposal is even less general. It only covers
single-statement assignment <setup>s.
And do multiline <setup>s really come up that often? Not in my
experience at least.
- Chris
>
>
> On Thu, Jul 3, 2008 at 1:22 PM, Stavros Korokithakis
> <stavros at korokithakis.net> wrote:
>>
>> I don't know where this "while True" concept snuck in, the proposal isn't
>> supposed to replace those, it's supposed to replace this:
>>
>> <setup>
>> while <expression>"
>> <stuff>
>> <setup>
>>
>> Stavros
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>
>
More information about the Python-ideas
mailing list