[issue25973] Segmentation fault with nonlocal and two underscores
Konstantin Enchant
report at bugs.python.org
Tue Dec 29 08:34:45 EST 2015
Konstantin Enchant added the comment:
Yes. Case:
# -------------------
class A:
def f(self):
nonlocal __x
# -------------------
must raises SyntaxError like case:
# -------------------
class A:
def f(self):
nonlocal x
>> SyntaxError: no binding for nonlocal 'x' found
# -------------------
but doesn't crash with SegFault as it is now.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25973>
_______________________________________
More information about the Python-bugs-list
mailing list