Message414574
In a static type when the "tp_name" is set to a fully qualified name (such as "my.package.TypeName") the "__qualname__" returns the unqualified name ("TypeName") instead of the fully qualified name.
The type's ``__name__`` and ``__module__`` have the expected value.
This is IMHO a bug in the implementation of type_qualname in Objects/typeobject.c.
Note that setting ``__qualname__`` in the types's ``__dict__`` doesn't work, that value is ignored. |
|
Date |
User |
Action |
Args |
2022-03-05 10:41:07 | ronaldoussoren | set | recipients:
+ ronaldoussoren |
2022-03-05 10:41:07 | ronaldoussoren | set | messageid: <1646476867.36.0.734336530708.issue46928@roundup.psfhosted.org> |
2022-03-05 10:41:07 | ronaldoussoren | link | issue46928 messages |
2022-03-05 10:41:07 | ronaldoussoren | create | |
|