attaching names to subexpressions
Chris Angelico
rosuav at gmail.com
Sun Oct 28 06:44:40 EDT 2012
On Sun, Oct 28, 2012 at 6:12 PM, F.R. <anthra.norell at 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
More information about the Python-list
mailing list