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 ncoghlan
Recipients brett.cannon, eric.snow, lemburg, minrk, ncoghlan, r.david.murray, tdsmith, vstinner
Date 2015-06-30.08:20:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As others have noted, we're not going to change this default in the standard CPython executable (due to the degree of disruption involved), and the -S and -I switches already effectively turn it off (by disabling site module processing entirely)

However, it could be reasonable to consider offering a way to disable *just* the execution of arbitrary code from .pth files, while otherwise allowing the site module to run.
Date User Action Args
2015-06-30 08:20:55ncoghlansetrecipients: + ncoghlan, lemburg, brett.cannon, vstinner, r.david.murray, eric.snow, minrk, tdsmith
2015-06-30 08:20:54ncoghlansetmessageid: <>
2015-06-30 08:20:54ncoghlanlinkissue24534 messages
2015-06-30 08:20:54ncoghlancreate