[issue19888] Three argument type() super call sets __name__ but not __qualname__
Barry A. Warsaw
report at bugs.python.org
Fri Dec 6 02:17:57 CET 2013
Barry A. Warsaw added the comment:
I don't see the value in opening a new bug. Now that we understand what's going on, let's just repurpose and retitle this one.
Run qualname-19888.py with Python 3.3 and you'll get:
Obj.__name__ foo
Obj.__qualname__ Obj
repr(Obj) <class '__main__.Obj'>
And with 3.2:
Obj.__name__ foo
repr(Obj) <class '__main__.foo'>
The primary discrepancy (and relevant visible regression) is in the repr of Obj.
----------
nosy: +ncoghlan
resolution: invalid ->
status: closed -> open
title: type.__new__() name argument is ignored -> Three argument type() super call sets __name__ but not __qualname__
versions: -Python 2.7, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19888>
_______________________________________
More information about the Python-bugs-list
mailing list