]> granicus.if.org Git - python/commitdiff
ready types returned from PyType_FromSpec
authorBenjamin Peterson <benjamin@python.org>
Mon, 30 Jan 2012 01:16:37 +0000 (20:16 -0500)
committerBenjamin Peterson <benjamin@python.org>
Mon, 30 Jan 2012 01:16:37 +0000 (20:16 -0500)
Misc/NEWS
Objects/typeobject.c

index 1287d2d8a54c48af48102b400456d1563af09cb9..40a4495d84b64bd856dc5714f17eafcd761c05c9 100644 (file)
--- 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.
 
index e2316bd0ad48dd3f8d372b167ecaf9778d6eb753..c3822abb0e065aa522da2c087c6ae7a653c5e770 100644 (file)
@@ -2386,6 +2386,9 @@ PyType_FromSpec(PyType_Spec *spec)
         }
     }
 
+    if (PyType_Ready(&res->ht_type) < 0)
+        goto fail;
+
     return (PyObject*)res;
 
  fail: