[Python-3000] Mini Path object

Mike Orr sluggoster at gmail.com
Fri Nov 10 03:55:37 CET 2006


On 11/9/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Talin wrote:
>  > I use 'posix' paths as my universal format.
>
> That assumes you can always distinguish a posix path from
> some other kind of path. That's not always the case,
> e.g. consider
>
>    /hello:wide/world
>
> Is that a posix path or not? It could be, but it could
> also be a classic MacOS pathname referring to a file
> called "wide/world" on a volume called "/hello".

The user will tell us what the source format is.    If they don't
know, they've got bigger problems than we can handle.  One can imagine
a guesspath() or any2posix() function, but I can't imagine it would be
widely used... or 100% correct.

-- 
Mike Orr <sluggoster at gmail.com>


More information about the Python-3000 mailing list