[Python-ideas] Working with Path objects: p-strings?
Koos Zevenhoven
k7hoven at gmail.com
Tue Mar 29 17:47:39 EDT 2016
On Mar 30, 2016 00:39, "Ethan Furman" <ethan at stoneleaf.us> wrote:
>
> On 03/29/2016 02:30 PM, Greg Ewing wrote:
>>
>> Paul Moore wrote:
>>>
>>>
>>> P(wherever)/youwant/togo
>>
>>
>> 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 /. How short
can a name be to be acceptable in builtins?-)
K (mobile)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160330/45a95061/attachment.html>
More information about the Python-ideas
mailing list