while True or while 1

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Dec 13 06:04:57 EST 2010


Paul Rubin wrote:
> 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):
>          ...
>
> ;-)
while '__For_ever___' not in ['nit-picking']:

:)

JM



More information about the Python-list mailing list