[Python-checkins] cpython (3.2): ready types returned from PyType_FromSpec
benjamin.peterson
python-checkins at python.org
Mon Jan 30 02:17:15 CET 2012
http://hg.python.org/cpython/rev/e858bb04f7e7
changeset: 74685:e858bb04f7e7
branch: 3.2
user: Benjamin Peterson <benjamin at python.org>
date: Sun Jan 29 20:16:37 2012 -0500
summary:
ready types returned from PyType_FromSpec
files:
Misc/NEWS | 2 ++
Objects/typeobject.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@
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
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2386,6 +2386,9 @@
}
}
+ if (PyType_Ready(&res->ht_type) < 0)
+ goto fail;
+
return (PyObject*)res;
fail:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list