Issue #11321: Fix a crash with multiple imports of the _pickle module when

embedding Python.  Patch by Andreas Stührk.
This commit is contained in:
Antoine Pitrou 2011-07-15 21:02:09 +02:00
commit 874d65afae
2 changed files with 5 additions and 0 deletions

View File

@ -225,6 +225,9 @@ Core and Builtins
Library
-------
- Issue #11321: Fix a crash with multiple imports of the _pickle module when
embedding Python. Patch by Andreas Stührk.
- Issue #6755: Add get_wch() method to curses.window class. Patch by Iñigo
Serna.

View File

@ -6338,8 +6338,10 @@ PyInit__pickle(void)
if (m == NULL)
return NULL;
Py_INCREF(&Pickler_Type);
if (PyModule_AddObject(m, "Pickler", (PyObject *)&Pickler_Type) < 0)
return NULL;
Py_INCREF(&Unpickler_Type);
if (PyModule_AddObject(m, "Unpickler", (PyObject *)&Unpickler_Type) < 0)
return NULL;