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 berker.peksag
Recipients Roger Aiudi, berker.peksag
Date 2018-09-23.07:58:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thanks for the report and for the PR. Could you give us a little bit more information about your use case? Couldn't you make the class you want to use implement the __fspath__ protocol?

    import pathlib as p

    class Spam:
        def __fspath__(self):
            return ''

And we can use it like:

    >>> p.Path('Lib') / Spam()
    >>> (p.Path('Lib') / Spam()).exists()

(3.4 and 3.5 are in security-fix-only mode, so I removed them from the versions field.)
Date User Action Args
2018-09-23 07:58:01berker.peksagsetrecipients: + berker.peksag, Roger Aiudi
2018-09-23 07:58:01berker.peksagsetmessageid: <>
2018-09-23 07:58:01berker.peksaglinkissue34775 messages
2018-09-23 07:58:00berker.peksagcreate