[Python-bugs-list] [ python-Bugs-478425 ] Change in os.path.join (ntpath.py)

noreply@sourceforge.net noreply@sourceforge.net
Mon, 05 Nov 2001 12:19:08 -0800


Bugs item #478425, was opened at 2001-11-05 12:19
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478425&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg Chapman (glchapman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Change in os.path.join (ntpath.py)

Initial Comment:
I had been using this:

  os.path.join(dirname, "")

as a convenient way of getting a dirname with a path 
separator appended if it didn't have one already.  
Under Python 2.2b1 in Windows, this no longer works.  
Looking at the documentation (specifically, the 
qualifier "unless path is empty"), it appears that it 
never should have worked.  So, I guess that's not a 
bug.

However, in figuring this out, I noticed that the join 
in ntpath.py is now significantly different from the 
join in the other path modules.  And those other 
modules will still allow a blank string as the last 
parameter to produce a pathstring with a terminating 
path separator, so I guess they need to be updated.

Anyway, the different join behavior clearly needs to 
be synchronized between platforms.



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=478425&group_id=5470