Message416078
> 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. |
|
Date |
User |
Action |
Args |
2022-03-26 18:25:50 | eryksun | set | recipients:
+ eryksun, lemburg, brett.cannon, jaraco, ncoghlan, eric.araujo, chris.jerdonek, python-dev, eric.snow, serhiy.storchaka, jayyin11043, ncohen |
2022-03-26 18:25:50 | eryksun | set | messageid: <1648319150.28.0.34151318683.issue32642@roundup.psfhosted.org> |
2022-03-26 18:25:50 | eryksun | link | issue32642 messages |
2022-03-26 18:25:50 | eryksun | create | |
|