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 <rep...@bugs.python.org> <http://bugs.python.org/issue25973> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com