[issue33944] Deprecate and remove pth files
Steve Dower
report at bugs.python.org
Thu Mar 7 14:39:53 EST 2019
Steve Dower <steve.dower at python.org> added the comment:
Nonetheless, it's still something that we could support better. If telling someone to set PYTHONSTARTUP is too hard, then we can design another way that can work well without relying on a barely documented (mis)feature.
As one idea, we could add a way to register new -X options that would translate into an import/function call after doing site, which then means you could do "python -X coverage ..." and if you don't then you don't get code injected at all, regardless of bugs in any libraries you've installed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33944>
_______________________________________
More information about the Python-bugs-list
mailing list