This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Document os.path.join oddity on Windows
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, tebeka, tim.peters
Priority: normal Keywords:

Created on 2006-04-23 13:08 by tebeka, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg28330 - (view) Author: Miki Tebeka (tebeka) * Date: 2006-04-23 13:08
Please document that on windows
os.path.join("m:\\noo", "\\woo") => '\\woo'

From reading the code I see that this is intetional,
however it need to be documented.
msg28331 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006-04-23 17:38
Logged In: YES 
user_id=31435

Noting that there's nothing special about Windows here:

>>> import posixpath
>>> posixpath.join('/noo', '/woo')
'/woo'
msg28332 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-04-28 16:37
Logged In: YES 
user_id=849994

The documentation was already there. I added a parenthetical
note that on Windows, the drive letter is also thrown away.
(rev. 45781, 45782)
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43265
2006-04-23 13:08:23tebekacreate