[issue9921] os.path.join('x','') behavior

Radu Grigore report at bugs.python.org
Fri Oct 1 17:53:27 CEST 2010


Radu Grigore <radugrigore at gmail.com> added the comment:

I would say something like the following.

The function join(path1, path2) is almost like os.sep.join(path1, path2), but (1) trailing path separators in path1 are ignored and (2) the result is simply path2 when path2 is an absolute path. The call join(path1, path2, path3) is equivalent to join(join(path1, path2), path3), and similarly for more than three paths.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9921>
_______________________________________


More information about the Python-bugs-list mailing list