diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2012-11-24 20:42:59 +0100 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-11-24 20:42:59 +0100 |
| commit | 9770925980a2c52aadd6aa1a6f3c243f9a62bae9 (patch) | |
| tree | 53b6638b73aa0b0586e362b26954e51669bac3ab /Python/bltinmodule.c | |
| parent | fbce793218005f0778f70a840b1e2bf688f9bb0f (diff) | |
| parent | 74f7ad5618cbcabdfa548f893bad48e6c16c88bc (diff) | |
| download | cpython-9770925980a2c52aadd6aa1a6f3c243f9a62bae9.tar.gz | |
Issue #12848: The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does.
Patch by Serhiy Storchaka.
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 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; |
