[Python-Dev] Nonlocal shortcut (original) (raw)
Terry Reedy tjreedy at udel.edu
Mon Dec 8 01:02:01 CET 2008
- Previous message: [Python-Dev] Nonlocal shortcut
- Next message: [Python-Dev] Deciding on dbm API in setup.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fabio Zadrozny wrote:
Hi,
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.
As near as I can tell from testing, that did not happen. The PEP needs revision to delete that or push it to a later version.
However, the latest grammar specification (http://docs.python.org/dev/3.0/reference/grammar.html?highlight=full%20grammar) 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?
- Previous message: [Python-Dev] Nonlocal shortcut
- Next message: [Python-Dev] Deciding on dbm API in setup.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]