New submission from Sam Bishop: The output of performing "dir(__class__)" during a class' __init__ method, seems to be lacking the new '__qualname__' attribute in python 3.
This rough test can be pasted right into the python 3.4 REPL to see the issue. Tested on 64bit python 3.4 running on OSX 10.9 " class Foo: class Bar(object): keywords = dict() def __init__(self, **kwargs): print(dir(__class__)) print(''.join(('"str(__class__.__qualname__)" = ', str(__class__.__qualname__)))) print(''.join(( 'Is "__qualname__" in the output of the dir() function? : ', str(('__qualname__' in dir(__class__)))))) self.keywords = kwargs test = Foo.Bar(see='We are missing something here') " ---------- components: Interpreter Core messages: 230591 nosy: techdragon priority: normal severity: normal status: open title: __qualname__ missing from dir(__class__) during class initialisation type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22790> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com