[issue24534] disable executing code in .pth files

Marc-Andre Lemburg report at bugs.python.org
Tue Jun 30 22:36:24 CEST 2015


Marc-Andre Lemburg added the comment:

On 30.06.2015 20:52, Min RK wrote:
> 
> Thanks for the feedback, I thought it might be a long shot. I will go back to removing the *use* of the feature everywhere I can find it, since it is so problematic and rarely, if ever, desirable.

Could you please post an example of where the feature is
problematic ?

>> it's an essential feature that has been documented for a very long time
>> https://docs.python.org/3.5/library/site.html
> 
> The entirety of the documentation of this feature appears to be this sentence on that page:
>
>> Lines starting with import (followed by space or tab) are executed.

Yep, but it's enough to be in active use.

----------

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


More information about the Python-bugs-list mailing list