Nick Coghlan <ncogh...@gmail.com> added the comment:

To make a potentially viable concrete proposal here, I think a reasonable first 
step would be to change the ".pth" file processing code in site.py to emit 
PendingDeprecationWarning for the 'if line.startswith(("import ", 
"import\t")):' branch.

In addition to helping to determine the scope of the compatibility break being 
discussed here, such a warning would also be usable as a debugging tool.

I'd also suggest updating "python -m site" to list any pth files that it finds, 
and categorise them as simple sys.path additions (which are generally fine), 
and arbitrary code (which can be problematic).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33944>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to