[Python-Dev] Issue #11051: system calls per import (original) (raw)
Victor Stinner victor.stinner at haypocalc.com
Sun Jan 30 09:56:18 CET 2011
- Previous message: [Python-Dev] Summary of Python tracker Issues
- Next message: [Python-Dev] Issue #11051: system calls per import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Summary of Python tracker Issues
- Next message: [Python-Dev] Issue #11051: system calls per import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]