[issue33944] Deprecate and remove pth files

Ivan Pozdeev report at bugs.python.org
Tue Feb 26 16:23:19 EST 2019


Ivan Pozdeev <ivan_pozdeev at mail.ru> added the comment:

On 26.02.2019 23:37, Barry A. Warsaw wrote:

> My opposition would lessen if there were clear ways to debug, and preferably also prevent, pth interpretation.

Easy. Insert a chunk into site.py that would call pdb.set_trace() if an envvar (e.g. `PYSITEDEBUG') or a command line switch is set.

Actually, why can't whoever has this problem add such a chunk themselves? Is this really such a frequent and ubiquitous problem
that this needs to be in the stock codebase? I suspect we're dealing with a vocal minority here.

----------

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


More information about the Python-bugs-list mailing list