[Python-Dev] Issue #11051: system calls per import
Victor Stinner
victor.stinner at haypocalc.com
Sun Jan 30 09:56:18 CET 2011
Hi,
Antoine Pitrou noticed that Python 3.2 tries a lot of filenames to load
a module:
http://bugs.python.org/issue11051
Python 3.1 does already test many filenames, but with Python 3.2, it is
even worse.
For each directory in sys.path, it tries 9 suffixes: '',
'.cpython-32m.so', 'module.cpython-32m.so', '.abi3.so',
'module.abi3.so', '.so', 'module.so', '.py', '.pyc'.
I don't understand why it tests so much .so suffixes. And why it does
test with and without "module".
Victor
More information about the Python-Dev
mailing list