Skip to content

os.extsep status? doc or os bug? #48651

Closed

Description

@terryjreedy
BPO 4401
Nosy @birkenfeld, @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-12-05.07:46:20.941>
created_at = <Date 2008-11-24.01:24:50.768>
labels = ['library']
title = 'os.extsep status? doc or os bug?'
updated_at = <Date 2008-12-05.07:46:20.920>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2008-12-05.07:46:20.920>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2008-12-05.07:46:20.941>
closer = 'georg.brandl'
components = ['Library (Lib)']
creation = <Date 2008-11-24.01:24:50.768>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 4401
keywords = []
message_count = 3.0
messages = ['76290', '76333', '76972']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'terry.reedy']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue4401'
versions = ['Python 3.0']

Activity

  1. terryjreedy commented on Nov 24, 2008

    @terryjreedy
    MemberAuthor

    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.

  2. added
    stdlib
    on Nov 24, 2008
  3. terryjreedy commented on Nov 24, 2008

    @terryjreedy
    MemberAuthor

    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.

  4. birkenfeld commented on Dec 5, 2008

    @birkenfeld
    Member

    Re-added os.extsep to the os module in r67552.

  5. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions