while true: !!!
D-Man
dman at res137a-039.rh.rit.edu
Sat Dec 16 12:32:41 EST 2000
On Sat, Dec 16, 2000 at 04:45:07PM +0000, Steve Lamb wrote:
>
> while 1:
> if cond:
> break
> do something
>
why not
while ( !cond ) :
do something
It involves less typing and more importantly shows the next reader
when the loop should end. I strongly dislike the fake infinite loops
like "while 1 :".
-D
PS. I haven't been following most of this thread, so forgive me if
this has already come up.
More information about the Python-list
mailing list