Message326146
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 'pathlib.py'
And we can use it like:
>>> p.Path('Lib') / Spam()
PosixPath('Lib/pathlib.py')
>>> (p.Path('Lib') / Spam()).exists()
True
(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:01 | berker.peksag | set | recipients:
+ berker.peksag, Roger Aiudi |
2018-09-23 07:58:01 | berker.peksag | set | messageid: <1537689481.08.0.956365154283.issue34775@psf.upfronthosting.co.za> |
2018-09-23 07:58:01 | berker.peksag | link | issue34775 messages |
2018-09-23 07:58:00 | berker.peksag | create | |
|