This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients brett.cannon, chris.jerdonek, eric.araujo, eric.snow, eryksun, jaraco, jayyin11043, lemburg, ncoghlan, ncohen, python-dev, serhiy.storchaka
Date 2022-03-26.18:25:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648319150.28.0.34151318683.issue32642@roundup.psfhosted.org>
In-reply-to
Content
> I've got in mind a PyListObject subclass with calls to PyOS_FSPath 
> before insert, append, extend and __getitem__.

The sys module doesn't prevent rebinding sys.path. Most code I think is careful to update sys.path. But surely some code replaces it with a new list instead of updating via insert(), append(), extend(), or updating a slice such as `sys.path[:] = new_path`. For example, ModifiedInterpreter.transfer_path() in Lib/idlelib/pyshell.py rebinds sys.path. It doesn't have to, but it does.
History
Date User Action Args
2022-03-26 18:25:50eryksunsetrecipients: + eryksun, lemburg, brett.cannon, jaraco, ncoghlan, eric.araujo, chris.jerdonek, python-dev, eric.snow, serhiy.storchaka, jayyin11043, ncohen
2022-03-26 18:25:50eryksunsetmessageid: <1648319150.28.0.34151318683.issue32642@roundup.psfhosted.org>
2022-03-26 18:25:50eryksunlinkissue32642 messages
2022-03-26 18:25:50eryksuncreate