On Tue, Mar 29, 2016 at 6:06 PM Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
Koos Zevenhoven wrote:
> - Only some URIs (or even URLs) can be reliably distinguished from
> file paths. However, those that contain '://' could be automatically
> turned into URI objects by p-strings [or Path(...)].

No, they couldn't. "hello://world" is a perfectly valid unix
pathname (albeit slightly redundant due to the double slash).
I would not want Path() deciding that I really meant it to
be a URI.


Good point. Even worse:

    $ mkdir ftp://www.example.com
    $ tree
    .
    └── ftp:/
        └── www.example.com/

    2 directories, 0 files