Le vendredi 03 novembre 2006 à 15:19 -0600, Ka-Ping Yee a écrit :
> I suppose that's fine.  Also i guess
> 
>     nonlocal x = y = 0

That's ambiguous.
Is only "x" nonlocal, or are both "x" and "y"?

What's the point anyway? if you write "nonlocal x = 0", it means you
aren't reusing the variable value between calls...
Of course the variable could be re-used by another inner function, but
it's not common to have lots of inner functions sharing variables of a
single outer function (people would rather write a class).


_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to