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

2010-10-11 Thread Radu Grigore
Changes by Radu Grigore : -- nosy: -rgrig ___ Python tracker <http://bugs.python.org/issue9921> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-10-11 Thread Radu Grigore
Radu Grigore added the comment: Realizing I still don't know what os.join.path does, I looked at the source. The comment in posixpath.py is: # Ignore the previous parts if a part is absolute. # Insert a '/' unless the first part is empty or already ends in '/'.

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

2010-10-11 Thread Radu Grigore
Radu Grigore added the comment: posixpath.py's comment says -- ___ Python tracker <http://bugs.python.org/issue9921> ___ ___ Python-bugs-list mailing list

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

2010-10-01 Thread Radu Grigore
Radu Grigore 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

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

2010-09-22 Thread Radu Grigore
New submission from Radu Grigore : The docs say that "the return value is the concatenation of path1, and optionally path2, etc., with exactly one directory separator (os.sep) inserted between components, unless path2 is empty." But os.path.join('x','') returns