[issue33944] Deprecate and remove pth files
Barry A. Warsaw
report at bugs.python.org
Fri Jun 22 18:25:22 EDT 2018
Barry A. Warsaw <barry at python.org> added the comment:
There are lots of problems with pth files, although arbitrary code execution is probably the most egregious. They are also notoriously difficult to debug, and happen before any control is given to user code. They certainly are unnecessary for namespace packages, which I think they currently get used for often in Py 2/3 straddling code.
Maybe it will be okay to just fall back to sys.path extension, but I'd like to have a better understanding of exactly what the use cases are (in a pure Python 3 world), and we have to address the other problems about discovery and debuggability.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33944>
_______________________________________
More information about the Python-bugs-list
mailing list