Change by Noam Cohen :
--
nosy: +ncohen
nosy_count: 8.0 -> 9.0
pull_requests: +30196
pull_request: https://github.com/python/cpython/pull/32118
___
Python tracker
<https://bugs.python.org/issu
Noam Cohen added the comment:
You've got a point.
But in my opinion path-like object usage should be intuitive and users should
not worry about converting it into string in some of the places.
What do you feel about sub-classing list for sys.path and converting path-like
objects
Noam Cohen added the comment:
So I've got in mind a PyListObject subclass with calls to PyOS_FSPath before
insert, append, extend and __getitem__.
But I feel like this is an overkill; also, extend function might be trickier to
implement.
Do any of you have better
Noam Cohen added the comment:
that's why pre-insert conversion was suggested.
path-like objects could still be added to sys.path, while converting to str
upon insert, preserving sys.path's bytes and strings only policy.
--
___
Pyth