diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-10-31 03:41:54 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-10-31 03:41:54 (GMT) |
commit | 42124a727d0516e8b98b4b2d3dbae4044d34a836 (patch) | |
tree | 0e230ac6068d9a6f1effc9c7fbe0467a8ccd5565 /Python/bltinmodule.c | |
parent | 7ff2094bc7e2c6ecb735116b2187187bb4f58daa (diff) | |
download | cpython-42124a727d0516e8b98b4b2d3dbae4044d34a836.zip cpython-42124a727d0516e8b98b4b2d3dbae4044d34a836.tar.gz cpython-42124a727d0516e8b98b4b2d3dbae4044d34a836.tar.bz2 |
initialize map/filter/zip in _PyBuiltin_Init rather than the catch-all function
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 0e6e6ff..fac64bc 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; |