strace of python shows nonsense

Dieter Maurer dieter at handshake.de
Tue Jan 15 02:41:50 EST 2013


Joep van Delft <joepvandelft at xs4all.nl> writes:

> ...
> What puzzles me, is the amount of errors for open and stat64.

The high number of errors comes from Python's import logic:
when Python should import a module/package (not yet imported),
it looks into each member on "sys.path" for about 6 different potential
filename spellings corresponding to the module -- until it succeeds
or has tried all members. Most such filesystem lookups will fail -
giving a high number of "stat" errors.




More information about the Python-list mailing list