Message318468
We can allow using ... to navigate the "parent" path:
>>> import pathlib
>>> p = pathlib.Path('a/b/c')
>>> p
PosixPath('a/b/c')
>>> p / ...
PosixPath('a/b')
>>> p / ... / ... / 'temp'
PosixPath('a/temp')
The patch is trivial and I think that using "..." instead of ".parent" makes code clearer and cuter. |
|
Date |
User |
Action |
Args |
2018-06-01 21:57:15 | yselivanov | set | recipients:
+ yselivanov, brett.cannon, pitrou |
2018-06-01 21:57:15 | yselivanov | set | messageid: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za> |
2018-06-01 21:57:15 | yselivanov | link | issue33739 messages |
2018-06-01 21:57:15 | yselivanov | create | |
|