diff Python/bltinmodule.c @ 80076:75fe7f5fda9a

initialize map/filter/zip in _PyBuiltin_Init rather than the catch-all function
author Benjamin Peterson <benjamin@python.org>
date Tue, 30 Oct 2012 23:41:54 -0400
parents 0a3149b30f20
children b9d72d13571b
line wrap: on
line diff
--- a/Python/bltinmodule.c	Tue Oct 30 23:31:12 2012 -0400
+++ b/Python/bltinmodule.c	Tue Oct 30 23:41:54 2012 -0400
@@ -2405,6 +2405,12 @@
 _PyBuiltin_Init(void)
 {
     PyObject *mod, *dict, *debug;
+
+    if (PyType_Ready(&PyFilter_Type) < 0 ||
+        PyType_Ready(&PyMap_Type) < 0 ||
+        PyType_Ready(&PyZip_Type) < 0)
+        return NULL;
+
     mod = PyModule_Create(&builtinsmodule);
     if (mod == NULL)
         return NULL;