This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients ronaldoussoren
Date 2022-03-05.10:41:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646476867.36.0.734336530708.issue46928@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-05 10:41:07ronaldoussorensetrecipients: + ronaldoussoren
2022-03-05 10:41:07ronaldoussorensetmessageid: <1646476867.36.0.734336530708.issue46928@roundup.psfhosted.org>
2022-03-05 10:41:07ronaldoussorenlinkissue46928 messages
2022-03-05 10:41:07ronaldoussorencreate