The rap against "while True:" loops

Paul Rubin http
Wed Oct 14 00:22:11 CEST 2009

Mensanator <mensanator at> writes:
> And I'm not saying John nor the OP should stop using what works for
> them. But there are certainly valid reasons for "don't use while
> True" to be on the "Best Practices" list.
> After all, how many times hve you put 'break' in a loop
> comprehension?


    Towards the best collection traversal interface

    "We present a design of the overall optimal collection traversal
    interface, which is based on a left-fold-like combinator with
    premature termination. The design has been implemented and tested in

More information about the Python-list mailing list