From 3e2d4b8800fb0cd0afe4da7ca6537f8f23847879 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 30 Oct 2012 23:41:54 -0400 Subject: initialize map/filter/zip in _PyBuiltin_Init rather than the catch-all function --- Python/bltinmodule.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Python/bltinmodule.c') diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 0e6e6ff9ff..fac64bcc69 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2405,6 +2405,12 @@ PyObject * _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; -- cgit v1.2.1