[issue17983] global __class__ statement in class declaration

2013-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd9141a4f999 by Benjamin Peterson in branch '3.3': complain about "global __class__" in a class body (closes #17983) http://hg.python.org/cpython/rev/cd9141a4f999 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected statu

[issue17983] global __class__ statement in class declaration

2013-05-15 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list

[issue17983] global __class__ statement in class declaration

2013-05-15 Thread Dwight Guth
New submission from Dwight Guth: The following python program causes cpython to crash: class A: global __class__ def a(self): super() I get the following output on the console: bug.py:2: SyntaxWarning: name '__class__' is assigned to before global declaration global __class__ lookup