The rap against "while True:" loops

Paul Rubin http
Sun Oct 18 00:22:59 CEST 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