On 2010-12-12, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote:
> With the "while True" idiom in Python 2.x, you can easily exit out of an > infinite loop without using break: > >>>> while True: > ... print "Looping" > ... True = 0 > ... > Looping >>>> >>>> while True: # Execute an infinite loop in 0 seconds. > ... print "Looping" > ... >>>> > > *wink* Sadly, I've seen people do stuff like that in real programs... -- Grant Edwards grant.b.edwards Yow! I was making donuts at and now I'm on a bus! gmail.com -- http://mail.python.org/mailman/listinfo/python-list