[issue45315] `PyType_FromSpec` does not copy the name
Hai Shi
report at bugs.python.org
Wed Oct 6 23:06:19 EDT 2021
Hai Shi <shihai1991 at 126.com> added the comment:
> the simplest solution is calling `type_set_name`, even if that runs some unnecessary checks.
Hm, I haven't find any case who use dynamical tp_name of Type_Spec temporarily.
If we meet this user case, Adding a new object pointer of type name in is an other option maybe:)
----------
nosy: +petr.viktorin, shihai1991
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45315>
_______________________________________
More information about the Python-bugs-list
mailing list