mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
ready types returned from PyType_FromSpec
This commit is contained in:
parent
e28108cbd7
commit
2652d2570e
2 changed files with 5 additions and 0 deletions
|
@ -2386,6 +2386,9 @@ PyType_FromSpec(PyType_Spec *spec)
|
|||
}
|
||||
}
|
||||
|
||||
if (PyType_Ready(&res->ht_type) < 0)
|
||||
goto fail;
|
||||
|
||||
return (PyObject*)res;
|
||||
|
||||
fail:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue