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 petr.viktorin
Recipients petr.viktorin, seberg, shihai1991
Date 2021-10-20.16:35:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634747705.33.0.409999972465.issue45315@roundup.psfhosted.org>
In-reply-to
Content
> the simplest solution is calling `type_set_name`, even if that runs some unnecessary checks.

Unfortunately this won't work, because it sets ht_name to the same value as tp_name. For historical reasons, the two can be different (and often are) for types created with PyType_From*Spec*.

I haven't found a way to fix this issue without adding yet another pointer to the PyHeapTypeObject struct.
History
Date User Action Args
2021-10-20 16:35:05petr.viktorinsetrecipients: + petr.viktorin, seberg, shihai1991
2021-10-20 16:35:05petr.viktorinsetmessageid: <1634747705.33.0.409999972465.issue45315@roundup.psfhosted.org>
2021-10-20 16:35:05petr.viktorinlinkissue45315 messages
2021-10-20 16:35:05petr.viktorincreate