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 shihai1991
Recipients corona10, fancitron, petr.viktorin, shihai1991, vstinner
Date 2021-01-21.05:02:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611205359.26.0.71808611052.issue42035@roundup.psfhosted.org>
In-reply-to
Content
> New C API functions must not return borrowed references, but strong references.

Thanks petr, victor for your suggestion. It's more friendly to users.

> Which one should be returned by PyType_GetName()? Is there a warranty that it's always short or always qualified?

Returning short or qualified name depends on how to define the tp_name in PyType_Spec or type object. IMHO, PyType_GetName() return the original defined type name is fine to users.
History
Date User Action Args
2021-01-21 05:02:39shihai1991setrecipients: + shihai1991, vstinner, petr.viktorin, corona10, fancitron
2021-01-21 05:02:39shihai1991setmessageid: <1611205359.26.0.71808611052.issue42035@roundup.psfhosted.org>
2021-01-21 05:02:39shihai1991linkissue42035 messages
2021-01-21 05:02:39shihai1991create