[issue19073] Inability to specific __qualname__ as a property on a class instance.
Irit Katriel
report at bugs.python.org
Fri Jan 7 07:04:01 EST 2022
Irit Katriel <iritkatriel at gmail.com> added the comment:
This is the check that is preventing qualname being a property:
https://github.com/python/cpython/blob/994f90c0772612780361e1dc5fa5223dce22f70a/Objects/typeobject.c#L2853
Note that it is not the same check used for assignment, which is here:
https://github.com/python/cpython/blob/994f90c0772612780361e1dc5fa5223dce22f70a/Objects/typeobject.c#L559
I think some unit tests are missing for properties, they would need to be added.
----------
nosy: +iritkatriel, vstinner
versions: +Python 3.11 -Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19073>
_______________________________________
More information about the Python-bugs-list
mailing list