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.extsep status? doc or os bug?
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, terry.reedy
Priority: normal Keywords:

Created on 2008-11-24 01:24 by terry.reedy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg76290 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2008-11-24 01:24
3.0c3 Manual (as with 2.x):
os.extsep 
The character which separates the base filename from the extension; for
example, the '.' in os.py. Also available via os.path.

3.0c3
>>> import os
>>> os.extsep
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'extsep'
>>> os.path.extsep
'.'

os.extsep apparently was present in 2.x
Mention of os.extsep was also present in 2.x docstring and removed in
3.0 docstring, so perhaps this was intentional, but it does not make
much sense, so I am provisionally marking this as a library bug.
msg76333 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2008-11-24 16:15
For more information: in 3.0, os.curdir, os.pardir, os.sep, os.altsep,
os.pathsep, os.defpath, and os.devnull are also in os.path. Only
os.extset was removed from os. Among the sysinfo constants, only
os.linesep was not in os.path.  I think either all names or none should
be duplicated.

The doc for os.path begins "This module implements some useful functions
on pathnames".  The duplication of the sysinfo constants is not
mentioned!  (Though perhaps is should be "Also, as a convenience, the
system information constants from os are available here also.")  So if
they are only in one place, it should be os, not os.path.

In any case, the removal of extpath and only that from os is gratuitous
breakage.
msg76972 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-05 07:46
Re-added os.extsep to the os module in r67552.
History
Date User Action Args
2022-04-11 14:56:41adminsetgithub: 48651
2008-12-05 07:46:20georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg76972
nosy: + georg.brandl
2008-11-24 16:15:46terry.reedysetmessages: + msg76333
2008-11-24 01:24:50terry.reedycreate