A question on os.path.join in POSIX systems

Dieter Maurer dieter at handshake.de
Fri Jun 22 14:25:08 EDT 2012


Kushal Das <kushaldas at gmail.com> writes:

> There is a comment on posixpath.join saying "Ignore the previous parts
> if a part is absolute."

It means: "join(something, abspath) == abspath" whenever "abspath"
is an absolute path.

> Is this defined in the  POSIX spec ? If yes, then can someone please
> point me to a link where I can read about it ?

It has nothing to do with POSIX. It just describes a senseful
behavior of "join".




More information about the Python-list mailing list