PEP on path module for standard library
Peter Hansen
peter at engcorp.com
Sat Jul 23 10:23:11 EDT 2005
George Sakkis wrote:
> "Andrew Dalke" <dalke at dalkescientific.com> wrote:
>>I think that the string representation of a path is so important that
>>it *is* the path.
>
> There are (at least) two frequently used path string representations,
> the absolute and the relative to the working directory. Which one
> *is* the path ? Depending on the application, one of them woud
> be more natural choice than the other.
Sorry, George, but that's now how it works.
Whether using the regular string-based Python paths or the new path
module, a path *is* either absolute or relative, but cannot be both at
the same time.
This is therefore not an issue of "representation" but one of state.
-Peter
More information about the Python-list
mailing list