while (a=b()) ...

Phil Hunt philh at vision25.demon.co.uk
Thu May 13 11:50:12 EDT 1999


In article <87u2tjthnb.fsf at pc-hrvoje.srce.hr>
           hniksic at srce.hr "Hrvoje Niksic" writes:
> "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. 

IMO it is not.

> It mocks the whole idea of having a condition in the WHILE
> loop.

The idea of having a loop, where one is only allowed to test to get 
out of the loop at the top, is silly and ridiculous and deserves to 
be mocked.


-- 
Phil Hunt....philh at vision25.demon.co.uk





More information about the Python-list mailing list