Opened 5 years ago

Closed 4 years ago

#490 closed enhancement (fixed)

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 (4)

comment:1 Changed 4 years ago by haoyu

  • Cc biahaoyu@… added

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

comment:2 Changed 4 years ago by haoyu

  • Owner changed from somebody to haoyu
  • Status changed from new to assigned

comment:3 Changed 4 years ago by scoder

  • Component changed from Parsing to Python3 Semantics
  • Milestone changed from wishlist to 0.15
  • Owner changed from haoyu to haoyu,scoder
  • Status changed from assigned to new

comment:4 Changed 4 years ago by scoder

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