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

Koos Zevenhoven k7hoven at gmail.com
Tue Mar 29 18:10:52 EDT 2016


On Mar 30, 2016 01:07, "Ethan Furman" <ethan at stoneleaf.us> wrote:
>
> On 03/29/2016 02:47 PM, Koos Zevenhoven wrote:
>
>> On Mar 30, 2016 00:39, "Ethan Furman" wrote:
>>>
>>> On 03/29/2016 02:30 PM, Greg Ewing wrote:
>
>
>>>> If P were a suitable seed object, this could be
>>>>
>>>>    P/wherever/youwant/togo
>>>
>>>
>>> An interesting idea, but how would you differentiate between relative
>>> and absolute paths?
>>
>>
>> Indeed interesting. It would currently work with P = Path(''), kinda
>> like my earlier p'' / ... example. It works even with relative paths,
>> although they would not look like relative ones because of the first /.
>
>
> Please provide an example of both a relative and an absolute path
construction using `P`.
>

P/'relative/path'

P/'/absolute/path'

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


More information about the Python-ideas mailing list