mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
bpo-45315: PyType_FromSpec: Copy spec->name and have the type own the memory for its name (GH-29103)
This commit is contained in:
parent
2cbf50e812
commit
8a310dd5f4
5 changed files with 166 additions and 20 deletions
|
|
@ -290,6 +290,7 @@ typedef struct _heaptypeobject {
|
|||
PyObject *ht_name, *ht_slots, *ht_qualname;
|
||||
struct _dictkeysobject *ht_cached_keys;
|
||||
PyObject *ht_module;
|
||||
char *_ht_tpname; // Storage for "tp_name"; see PyType_FromModuleAndSpec
|
||||
/* here are optional user slots, followed by the members. */
|
||||
} PyHeapTypeObject;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue