[Python-ideas] Working with Path objects: p-strings?

Koos Zevenhoven k7hoven at gmail.com
Tue Mar 29 18:32:33 EDT 2016


>> On Mar 30, 2016 01:07, "Ethan Furman" wrote:
>
>
>>> Please provide an example of both a relative and an absolute path
>>> construction using `P`.
>>
>>
>> P/'relative/path'
>>
>> P/'/absolute/path'
>
>
> Thank you.
>
> So under this system a relative path appears with one leading slash, and
an absolute path appears with two leading slashes.
>
> Can't say I'm a fan.  :(
>

I'll have to agree. But to be fair, Greg wrote something like 'a suitable
seed object' so we could for ex. have P=PathSeed(), and use another
operator.

P@'rel/path'

P@'/abs/path'

Dunno.

-K at mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160330/9f8f1372/attachment.html>


More information about the Python-ideas mailing list