Serhiy Storchaka added the comment: I understand what happens. Python 3.3+ uses getdents(), not stat() for module search. Therefore stat() is not called for non-existed files.
> It stands that while the -S and -E option allow to disable any customization > a user might have done (which is necessary for e.g. suid scripts), the > automatic insertion of '' into sys.path has no way of being undone. Python used not only for suid scripts. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12238> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com