New submission from Yury Selivanov <yseliva...@gmail.com>:
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. ---------- components: Library (Lib) messages: 318468 nosy: brett.cannon, pitrou, yselivanov priority: normal severity: normal stage: patch review status: open title: pathlib: Allow ellipsis to appear after "/" to navigate to parent path type: enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33739> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com