os.path and Path
Ethan Furman
ethan at stoneleaf.us
Thu Jun 16 12:16:22 EDT 2011
Steven D'Aprano wrote:
> If Path is intended to be platform independent, then
> these two paths could represent the same location:
>
> 'a/b/c:d/e' # on Linux or OS X
> 'a:b:c/d:e' # on classic Mac pre OS X
>
> and be impossible on Windows. So what's the canonical path it should be
> converted to?
Are these actual valid paths? I thought Linux used '/' and Mac used ':'.
~Ethan~
More information about the Python-list
mailing list