The rap against "while True:" loops

Paul Rubin http
Sat Oct 17 18:22:59 EDT 2009


Terry Reedy <tjreedy at udel.edu> writes:
> >    d[key] += value
> 
> Yes, the motivation was to reduce 4 lines to 1 line for a common use
> case, and not because of any sense of 'inappropriateness'.

Reducing 4 confusing lines to 1 clear one is almost always appropriate.



More information about the Python-list mailing list