Ka-Ping Yee wrote: > Hi folks, > > I have finally completed a draft of a PEP on rebinding of names > in outer scopes. I've tried to go back and gather all of the > (amazingly numerous) proposals -- if i've forgotten or misattributed > any, let me know and i'll be happy to correct them. > > I look forward to your thoughts on it: > It's beautiful. Like Michael said, an impressive amount of history.
I wondered about this specifically: > A shorthand form is also permitted, in which nonlocal is prepended to an assignment or augmented assignment statement: > > nonlocal x = 3 Is a similar statement for globals legal in Py3k? It's not in 2.4 (according to my own testing) or 2.5 (according to the grammar). The syntax for 'global' and 'nonlocal' should be almost identical. Neil _______________________________________________ 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