[docs] importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object (issue 16421)

andrew.svetlov at gmail.com andrew.svetlov at gmail.com
Tue Nov 6 20:52:03 CET 2012


Respect Windows: make projects for test module in PC/VS9.0 and PCBuild,
add these projects into corresponding pcbuild.sln
Also mention test module in Tools/msi/msi.py

Thanks for patch!


http://bugs.python.org/review/16421/diff/6527/Lib/test/test_imp.py
File Lib/test/test_imp.py (right):

http://bugs.python.org/review/16421/diff/6527/Lib/test/test_imp.py#newcode223
Lib/test/test_imp.py:223: f = imp.find_module(m)[1]
file returned from find_module call should be closed at end of test. Use
self.addCleanup

http://bugs.python.org/review/16421/diff/6527/Python/import.c
File Python/import.c (right):

http://bugs.python.org/review/16421/diff/6527/Python/import.c#newcode508
Python/import.c:508: PyDict_SetItem(extensions, PyTuple_Pack(2,filename,
name), (PyObject*)def);
check result of PyTuple_Pack and PyDict_SetItem, return -1 if error.

http://bugs.python.org/review/16421/diff/6527/Python/import.c#newcode532
Python/import.c:532: def = (PyModuleDef*)PyDict_GetItem(extensions,
PyTuple_Pack(2, filename, name));
check result of PyTuple_Pack, return NULL if error

http://bugs.python.org/review/16421/


More information about the docs mailing list