Skip to content

Commit 2652d25

Browse files
committed
ready types returned from PyType_FromSpec
1 parent e28108c commit 2652d25

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ What's New in Python 3.2.3?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #13908: Ready types returned from PyType_FromSpec.
14+
1315
- Issue #11235: Fix OverflowError when trying to import a source file whose
1416
modification time doesn't fit in a 32-bit timestamp.
1517

Objects/typeobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,9 @@ PyType_FromSpec(PyType_Spec *spec)
23862386
}
23872387
}
23882388

2389+
if (PyType_Ready(&res->ht_type) < 0)
2390+
goto fail;
2391+
23892392
return (PyObject*)res;
23902393

23912394
fail:

0 commit comments

Comments
 (0)