This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Niels.Heinen, brett.cannon, eric.araujo, jcea, loewis, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
Date 2012-10-22.19:10:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350933003.98.0.977775519231.issue12238@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-10-22 19:10:04serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, brett.cannon, jcea, ncoghlan, pitrou, vstinner, eric.araujo, r.david.murray, Niels.Heinen
2012-10-22 19:10:03serhiy.storchakasetmessageid: <1350933003.98.0.977775519231.issue12238@psf.upfronthosting.co.za>
2012-10-22 19:10:03serhiy.storchakalinkissue12238 messages
2012-10-22 19:10:03serhiy.storchakacreate