Assignment in a while?
none
"thulben\" at (none)
Sun Apr 2 15:14:33 EDT 2006
So it seems that I stumbled on the idiomatic way of doing this then.
Well, as they say, "When in Rome..." :). Thanks for pointing out the
FAQ. I'll be reading up on it.
Cheers,
Ben
Paul Boddie wrote:
> none/Ben wrote:
>
>>Assignment within a while loop seems like a pretty standard thing, so I'm just
>>curious what I'm missing.
>
>
> The FAQ on this subject? ;-)
>
> http://www.python.org/doc/faq/general/#why-can-t-i-use-an-assignment-in-an-expression
>
> It's "standard" in C-flavoured languages, certainly, but probably not
> ubiquitous.
>
> Paul
>
More information about the Python-list
mailing list