From: Benjamin Peterson Date: Mon, 30 Jan 2012 01:16:37 +0000 (-0500) Subject: ready types returned from PyType_FromSpec X-Git-Tag: v3.2.3rc1~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2652d2570ea2d34fc790ef99ebd0c3c321fb86cb;p=python ready types returned from PyType_FromSpec --- diff --git a/Misc/NEWS b/Misc/NEWS index 1287d2d8a5..40a4495d84 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,8 @@ What's New in Python 3.2.3? Core and Builtins ----------------- +- Issue #13908: Ready types returned from PyType_FromSpec. + - Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp. diff --git a/Objects/typeobject.c b/Objects/typeobject.c index e2316bd0ad..c3822abb0e 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2386,6 +2386,9 @@ PyType_FromSpec(PyType_Spec *spec) } } + if (PyType_Ready(&res->ht_type) < 0) + goto fail; + return (PyObject*)res; fail: