[issue33944] Deprecate and remove pth files

Ionel Cristian Mărieș report at bugs.python.org
Tue Feb 26 19:34:30 EST 2019


Ionel Cristian Mărieș <contact at ionelmc.ro> added the comment:

On Wed, Feb 27, 2019 at 1:41 AM Barry A. Warsaw <report at bugs.python.org>
wrote:
> Basically yes, I’ve done this.  But think of the poor user who doesn’t
have that expertise or ability to hack on an installed Python’s site.py
file.  When their application breaks because some faulty pth was installed
behind their back, how do they debug their application when the breakage
has already occurred before Python even gets to their code?  How do they
answer questions like “where did that magical sys.path entry come from?” or
“how did that module get in sys.modules already?”

Aren't these sort of questions answered by using `strace python -v` or
similar? What information is missing more exactly?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33944>
_______________________________________


More information about the Python-bugs-list mailing list