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

Radu Grigore report at bugs.python.org
Mon Oct 11 18:01:05 CEST 2010


Radu Grigore <radugrigore at gmail.com> 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 '/'.

I find this clear and it directly corresponds to the implementation.

On the other hand, the source of ntpath.join() is a nightmare, and there's no similarly simple comment there.

----------

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


More information about the docs mailing list