[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Distutils] formencode as .egg in Debian ??



Phillip J. Eby wrote:
This is simply not true. If you don't believe PEP 302 and site.py, measure it for yourself. The *only* addition to startup is the time to actually read the .pth file and append the entries to the list.

I did. strace shows that all zip files are loaded.

And how often do programs attempt to import non-existing modules along performance critical paths?

Every time. Atleast sitecustomize is imported in most programs (except
those skipping site.py), and is not present in most installations.
The standard library catches ImportError about 250 times, although
fewer expect the failure in a typical installation.

Regards,
Martin



Reply to: