Missed NameConstant node
Issue #1
resolved
Looks like documentation missed to describe NameConstant node type. It appears in Python 3.3 and used for None, True and False constants. See http://bugs.python.org/issue16619 for details.
Comments (4)
-
repo owner -
reporter Sorry, my bad. NameConstant was actually added in 3.4 About 3.3: There are two changes: 1. YieldFrom added as you mentioned 2. TryExcept and TryFinally had unified, now there are only Try node. See http://bugs.python.org/issue12199 for that
-
Can this be closed now? NameConstant was documented in https://bitbucket.org/takluyver/greentreesnakes/commits/1b74e8139649f397e372c5395e983ab8466d0c0c.
-
repo owner - changed status to resolved
Good point, thanks.
- Log in to comment
From that issue, it looks like NameConstant is being added for 3.4, not 3.3. The commit is dated 6th December, and I wouldn't expect it to be backported.
That said, I was experimenting with 3.2, so I still need to add YieldFrom. Are there other new nodes in 3.3?