Author ncoghlan
Recipients Anthony Sottile, Antony.Lee, Chris Billington, Ethan Smith, Ivan.Pozdeev, __Vano, barry, brett.cannon, christian.heimes, eric.smith, eric.snow, jaraco, mhammond, ncoghlan, pitrou, takluyver, terry.reedy, vstinner
Date 2019-01-13.02:40:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547347221.55.0.330497036127.issue33944@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2019-01-13 02:40:23ncoghlansetrecipients: + ncoghlan, mhammond, barry, brett.cannon, terry.reedy, jaraco, pitrou, vstinner, eric.smith, christian.heimes, __Vano, eric.snow, takluyver, Antony.Lee, Ivan.Pozdeev, Anthony Sottile, Ethan Smith, Chris Billington
2019-01-13 02:40:21ncoghlansetmessageid: <1547347221.55.0.330497036127.issue33944@roundup.psfhosted.org>
2019-01-13 02:40:21ncoghlanlinkissue33944 messages
2019-01-13 02:40:21ncoghlancreate