Petr Viktorin <encu...@gmail.com> added the comment:
> 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45315> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com