[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing it as duplicate of issue21041. Thanks Remi. Yaroslav, feel free to discuss it in the other issue. -- nosy: +xtreak resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> pathlib.PurePath.pare

[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: *This is a duplicate of issue 21041 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This is a duplicate of 21041, it would be better to change the title of your PR so that it points to this bug report and to continue the discussion there. -- nosy: +remi.lapeyre versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Yaroslav
Yaroslav added the comment: Here's opened PR: https://github.com/python/cpython/pull/21799 -- ___ Python tracker ___ ___ Python-bug

[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +20934 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21799 ___ Python tracker _

[issue41511] Pathlib parents doesn't support slicing with negative indexes

2020-08-09 Thread Yaroslav
New submission from Yaroslav : As I can see, pathlib path parents don't support slicing with negative indexes: >>> import pathlib >>> path = pathlib.PosixPath("some/very/long/path/here") >>> path.parents[-1] ... raise IndexError(idx) IndexError: -1 That's kinda weird for python. I mean, i