while (a=b()) ...
Hrvoje Niksic
hniksic at srce.hr
Tue May 11 17:34:32 EDT 1999
"Fredrik Lundh" <fredrik at pythonware.com> writes:
> so don't use it. use the Standard Python Idiom That Everyone Else
> Uses instead (see below).
The problem with the Standard Python Idiom is that it's so horribly
ugly. It mocks the whole idea of having a condition in the WHILE
loop. Many of the poor-readability arguments that you apply to
Scott's code can just as well be applied to the "standard" idiom.
More information about the Python-list
mailing list