[ python-Bugs-1107258 ] os.pathsep is wrong on Mac OS X
SourceForge.net
noreply at sourceforge.net
Sat Jan 22 20:03:39 CET 2005
Bugs item #1107258, was opened at 2005-01-22 03:07
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1107258&group_id=5470
Category: Macintosh
Group: Python 2.4
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Mac-arena the Bored Zo (boredzo)
>Assigned to: Brett Cannon (bcannon)
Summary: os.pathsep is wrong on Mac OS X
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2005-01-22 11:03
Message:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1107258&group_id=5470
More information about the Python-bugs-list
mailing list