GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Undo deprecation of optparse · Issue #81284 · python/cpython

Undo deprecation of optparse #81284

New issue
Copy link
New issue
Copy link
Closed
Closed
Undo deprecation of optparse#81284
Copy link
Labels
3.8 (EOL)end of lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

Description

andersk
mannequin
opened on May 30, 2019
Issue body actions
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

    @andersk
    anderskmannequin
    on May 30, 2019
    MannequinAuthor
    More actions

    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. andersk
    added
    3.8 (EOL)end of lifeend of life
    on May 30, 2019
  3. andersk
    assigned
    docspython
    on May 30, 2019
  4. andersk
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on May 30, 2019
  5. tirkarthi commented on May 31, 2019

    @tirkarthi
    tirkarthi
    on May 31, 2019
    Member
    More actions

    See also bpo-25521

  6. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  7. erlend-aasland
    added this to Argparse issueson Feb 1, 2023
  8. serhiy-storchaka
    moved this to Doc issues in Argparse issueson Oct 11, 2024
  9. savannahostrowski commented on Jan 31, 2025

    @savannahostrowski
    savannahostrowski
    on Jan 31, 2025
    Member
    More actions

    This was done via #126227

  10. savannahostrowski
    closed this as completedon Jan 31, 2025
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 lifeend of lifedocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

    Projects

    • Argparse issues
      Status
      Doc issues
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.