This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients brett.cannon, pitrou, yselivanov
Date 2018-06-01.21:57:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-06-01 21:57:15yselivanovsetrecipients: + yselivanov, brett.cannon, pitrou
2018-06-01 21:57:15yselivanovsetmessageid: <1527890235.56.0.81473610881.issue33739@psf.upfronthosting.co.za>
2018-06-01 21:57:15yselivanovlinkissue33739 messages
2018-06-01 21:57:15yselivanovcreate