Ticket #490 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Py3 syntax: support 'nonlocal' scope

Reported by: scoder Owned by: haoyu,scoder
Priority: major Milestone: 0.15
Component: Python3 Semantics Keywords:
Cc: biahaoyu@…

Description

The nonlocal keyword of Python 2.6+ is not currently supported in Cython:

def testNonlocal(self):
    # 'nonlocal' NAME (',' NAME)*
    x = 0
    y = 0
    def f():
        nonlocal x
        nonlocal x, y

Change History

Changed 4 years ago by haoyu

  • cc biahaoyu@… added

Patch uploaded for review:  http://codereview.appspot.com/1291041

Changed 4 years ago by haoyu

  • owner changed from somebody to haoyu
  • status changed from new to assigned

Changed 4 years ago by scoder

  • owner changed from haoyu to haoyu,scoder
  • status changed from assigned to new
  • component changed from Parsing to Python3 Semantics
  • milestone changed from wishlist to 0.15

Changed 4 years ago by scoder

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.