[Patches] [ python-Patches-686397 ] add os.sep and friends to os.path

SourceForge.net noreply@sourceforge.net
Thu, 13 Feb 2003 22:02:56 -0800


Patches item #686397, was opened at 2003-02-14 00:02
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=686397&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Andrew I MacIntyre (aimacintyre)
Summary: add os.sep and friends to os.path

Initial Comment:
The attached patch implements an idea I brought up on
python-dev, namely that several platform-dependent
path-related variables should be available via the
platform-dependent path modules (ntpath, etc), not just
via the os module.  Those variables are sep, altsep,
extsep, pathsep, curdir, pardir and defpath.  Although
I disagree with Guido about how these variables should be
documented, all I did doc-wise was note in libos.tex that
these variables are also available via os.path.

The attached patch implements that idea and seems
to work properly on the one platform (Mac OS X) I
tried it on.  The os/2 stuff seemed the most likely to
have problems, so am assigning to Andrew MacIntyre,
at least to start with.  Andrew, feel free to pass it
around, just don't pass it back to me.  I'm headed out
of town for a week.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=686397&group_id=5470