Re: [Python-Dev] questions about memory management

2012-04-28 Thread Antoine Pitrou
Hello Julia, On Sat, 28 Apr 2012 10:06:52 +0200 (CEST) Julia Lawall wrote: > In Python-3.2.3/Python/import.c, in the function > _PyImport_FixupExtensionUnicode, is any call to PyDict_DelItemString > needed before the final failure returns? I would say it probably does, but it would need furth

[Python-Dev] questions about memory management

2012-04-28 Thread Julia Lawall
In Python-3.2.3/Python/import.c, in the function _PyImport_FixupExtensionUnicode, is any call to PyDict_DelItemString needed before the final failure returns? modules = PyImport_GetModuleDict(); if (PyDict_SetItemString(modules, name, mod) < 0) return -1; if (_PyState_AddMod