On Sun, Oct 28, 2012 at 6:12 PM, F.R. <anthra.nor...@bluewin.ch> wrote: > > How about: > > line = True > while line: > > line = function(x, y, z) > do something with(line) > > ?
That's going to go through the body of the loop with a false line before breaking out. In some situations that's not a problem, but it's distinctly different, so it's not a drop-in replacement for the others. ChrisA -- http://mail.python.org/mailman/listinfo/python-list