[issue24534] disable executing code in .pth files

Nick Coghlan report at bugs.python.org
Tue Jun 30 10:20:54 CEST 2015


Nick Coghlan added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24534>
_______________________________________


More information about the Python-bugs-list mailing list