[issue11321] 9th import of module _pickle always crashes

Andreas Stührk report at bugs.python.org
Sun Feb 27 15:03:37 CET 2011


Andreas Stührk <andy-python at hammerhartes.de> added the comment:

It's because the _pickle module doesn't incref Pickler_Type and Unpickler_Type before calling `PyModule_AddObject()` (which steals a reference).

The attached patch fixes the issue.

----------
keywords: +patch
nosy: +Trundle
Added file: http://bugs.python.org/file20931/issue11321.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11321>
_______________________________________


More information about the Python-bugs-list mailing list