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: os.pathsep is wrong on Mac OS X
Type: Stage:
Components: macOS Versions: Python 2.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: boredzo, brett.cannon
Priority: normal Keywords:

Created on 2005-01-22 11:07 by boredzo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg24021 - (view) Author: Mac-arena the Bored Zo (boredzo) Date: 2005-01-22 11:07
I'm running Python 2.4 on Darwin 7.5 (Mac OS X 10.3.5).

os.path.pathsep should be returning '/', since that's what everything that 
works with paths (the rest of the path module, plus the file class, etc.) 
expects. and yet it returns ':'.

making this even stranger is the fact that repr(os.path) returns the path to 
posixpath.
msg24022 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2005-01-22 19:03
Logged In: YES 
user_id=357491

You are misunderstanding what os.path.pathsep is for.  It is the string 
that separates paths themselves, not parts of a path.  It's ':' because that 
is how you separate paths on Darwin and any UNIX platform (e.g., "/usr/
bin:/usr/local/bin".

And because Darwin is UNIX it uses posixpath.

Closing as invalid since the setting is right and is not even in the official 
docs so general usage is not supported.
msg24023 - (view) Author: Mac-arena the Bored Zo (boredzo) Date: 2005-02-03 06:01
Logged In: YES 
user_id=711099

I wasn't suggesting that Darwin shouldn't use posixpath, I was wondering why it 
would be returning ':' for the path separator.

thanks for the explanation.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41475
2005-01-22 11:07:15boredzocreate