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

Koos Zevenhoven k7hoven at gmail.com
Sat Mar 26 19:51:04 EDT 2016


On Sun, Mar 27, 2016 at 1:13 AM, Greg Ewing <greg.ewing at canterbury.ac.nz>
wrote:

> [...]
> This feels like a slippery slope to me. If we include
> special syntax for pathnames, why shouldn't we have it
> for dates and times? Regular expressions? URLs? JSON
> data? SQL queries? XML data? Where do we draw the line?
>

OT:

To be honest, I do think it feels like URL:s are becoming (or have become)
just as important as paths, and that pathlib.Path should in the future work
with URLs just like it now works with windows and posix paths. The
difference between "http://domain.xyz/" and "C:\\" is not huge. I also
think there should be a Python type (stdlib or builtin), which handles JSON
objects nicer than dicts do and has its own literal syntax.

 - Koos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160327/52a22b69/attachment.html>


More information about the Python-ideas mailing list