[Python-Dev] Change PEP 399 import recommendation
Christian Heimes
christian at python.org
Sat Oct 12 23:35:23 CEST 2013
Am 12.10.2013 19:02, schrieb Antoine Pitrou:
> If you grow sys.path, imports get slower.
> (IMHO it also makes the source tree more cumbersome to navigate)
It shouldn't slow down successful imports. The module finder stops at
first hit.
A directory with pure Python modules is less cumbersome than a couple of
facade modules or intended code in try/except ImportError blocks.
More information about the Python-Dev
mailing list