while True or while 1

Paul Rubin no.email at nospam.invalid
Mon Dec 13 02:48:04 EST 2010


Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:
> I'm actually quite fond of the look of "while 1:", and sometimes use it, 
> not because it's faster, but just because I like it.

    for v in itertools.repeat(True):
         ...

;-)



More information about the Python-list mailing list