Skip to content

Undo deprecation of optparse #81284

Description

@andersk
mannequin
BPO 37103
Nosy @ericvsmith, @andersk, @tirkarthi

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 = None
created_at = <Date 2019-05-30.19:50:25.237>
labels = ['3.8', 'library', 'docs']
title = 'Undo deprecation of optparse'
updated_at = <Date 2019-05-31.04:55:30.484>
user = 'https://github.com/andersk'

bugs.python.org fields:

activity = <Date 2019-05-31.04:55:30.484>
actor = 'xtreak'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation', 'Library (Lib)']
creation = <Date 2019-05-30.19:50:25.237>
creator = 'andersk'
dependencies = []
files = []
hgrepos = []
issue_num = 37103
keywords = []
message_count = 2.0
messages = ['343997', '344023']
nosy_count = 4.0
nosy_names = ['eric.smith', 'andersk', 'docs@python', 'xtreak']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue37103'
versions = ['Python 3.8']

Activity

  1. andersk commented on May 30, 2019

    anderskmannequin
    MannequinAuthor

    The optparse library is currently marked in the documentation as deprecated in favor of argparse. However, argparse uses a nonstandard reinterpretation of Unix command line grammars that makes certain arguments impossible to express, and causes scripts to break when ported from optparse to argparse. See the bug report I filed nine years ago:

    https://bugs.python.org/issue9334
    argparse does not accept options taking arguments beginning with dash (regression from optparse)

    The conclusion of the core developers (e.g. msg309691) seems to have been that although it’s a valid bug, it can’t or won’t be fixed with the current argparse architecture.

    I was asked by another core developer to file a bug report for the de-deprecation of optparse (https://discuss.python.org/t/pep-594-removing-dead-batteries-from-the-standard-library/1704/20), so here it is.

  2. added
    docsDocumentation in the Doc dir
    stdlibStandard Library Python modules in the Lib/ directory
    on May 30, 2019
  3. tirkarthi commented on May 31, 2019

    @tirkarthi
    Member

    See also bpo-25521

  4. transferred this issue fromon Apr 10, 2022
  5. savannahostrowski commented on Jan 31, 2025

    @savannahostrowski
    Member

    This was done via #126227

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

    3.8 (EOL)end of lifedocsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directory

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions