The rap against "while True:" loops

Paul Rubin http
Sun Oct 18 13:53:41 EDT 2009


Lie Ryan <lie.1296 at gmail.com> writes:
> If key and value had been anything but simple variable/name, then
> definitely you're writing the try-block the wrong way. try-block must
> be kept as simple as possible.

Avoiding the try-block completely is the simplest possibility of them all.



More information about the Python-list mailing list