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 <1435652454.9.0.161284530132.issue24534@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1435652454.9.0.161284530132.issue24534@psf.upfronthosting.co.za>
2015-06-30 08:20:54ncoghlanlinkissue24534 messages
2015-06-30 08:20:54ncoghlancreate