[Python-Dev] Nonlocal shortcut

Fabio Zadrozny fabiofz at gmail.com
Sun Dec 7 22:46:57 CET 2008


I'm currently implementing a parser to handle Python 3.0, and one of
the points I found conflicting with the grammar specification is the
PEP 3104.

It says that a shortcut would be added to Python 3.0 so that "nonlocal
x = 0" can be written. However, the latest grammar specification
doesn't seem to take that into account... So, can someone enlighten me
on what should be the correct treatment for that on a grammar that
wants to support Python 3.0?



More information about the Python-Dev mailing list