New submission from Campbell Barton <ideasma...@gmail.com>: In python 3.2 this works and prints <class '__main__.Test'>, in cpython hg: 71296:ab162f925761 it fails with: NameError: global name '__class__' is not defined
Since this change is not documented I assume its a bug. --- snip --- class Test: def __init__(self): print(__class__) ---------- components: Interpreter Core messages: 140099 nosy: ideasman42 priority: normal severity: normal status: open title: cpython 3.3, __class__ missing. type: behavior versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12530> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com