[issue21041] pathlib.PurePath.parents rejects negative indexes

2020-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maxwell, in your case a more correct and obvious way is Path('/tmp') in filepath.parents although it may be not very efficient. Using the is_relative_to() method may be more efficient and obvious. -- nosy: +serhiy.storchaka __

<    1   2