hai shi <shihai1...@126.com> added the comment:
> 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42035> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com