The rap against "while True:" loops

Terry Reedy tjreedy at udel.edu
Sun Oct 11 00:33:21 EDT 2009


kj wrote:
>
> I use "while True"-loops often, and intend to continue doing this
> "while True", 

Me too.  Of course, in Python, 'while True' actually means 'while ^C not 
pressed and window not closed and process not killed:',
whereas in old mainframe Fortran the equivalent might have meant 'while 
my account not emptied', which tended to engender a fear of such loops.

tjr




More information about the Python-list mailing list