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 — Revisit `getopt` and `optparse` soft deprecations · Issue #126225 · python/cpython

Revisit getopt and optparse soft deprecations #126225

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Revisit getopt and optparse soft deprecations#126225
Copy link
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

Description

@ncoghlan
ncoghlan
opened on Oct 31, 2024
Issue body actions

Duplicate of #126180


(Based on @serhiy-storchaka's Discourse thread at https://discuss.python.org/t/getopt-and-optparse-vs-argparse/69618 ).

I'm going to draft a PR for this, and wanted an issue number for the NEWS entry.

The PR will be initially marked as DO-NOT-MERGE, as this feels like a change that needs an explicit +1 from the next SC (since we'd be reversing a deprecation that come from a previously approved PEP: https://peps.python.org/pep-0389/#deprecation-of-optparse)

Interestingly, the deprecation notice in getopt goes against the contents of PEP 389 ("The getopt module will not be deprecated. However, its documentation will be updated to point to argparse in a couple of places.")

Linked PRs

  • gh-126180: Remove getopt and optparse deprecation notices #126227

Activity

  1. ncoghlan
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Oct 31, 2024
  2. github-project-automation
    added this to docs issueson Oct 31, 2024
  3. github-project-automation
    moved this to Todo in docs issueson Oct 31, 2024
  4. ncoghlan
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    3.13only security fixesonly security fixes
    3.14bugs and security fixesbugs and security fixes
    on Oct 31, 2024
  5. ncoghlan commented on Oct 31, 2024

    @ncoghlan
    ncoghlan
    on Oct 31, 2024
    ContributorAuthor
    More actions

    The getopt deprecation was added in #106535 for Python 3.13 (as I discovered when looking at What's New while drafting a PR)

  6. zware commented on Oct 31, 2024

    @zware
    zware
    on Oct 31, 2024
    Member
    More actions

    See also gh-126180/GH-126186.

  7. ncoghlan commented on Oct 31, 2024

    @ncoghlan
    ncoghlan
    on Oct 31, 2024
    ContributorAuthor
    More actions

    D'oh! Those hadn't been mentioned in the Discourse thread, and I forgot to check GitHub itself.

  8. ncoghlan commented on Oct 31, 2024

    @ncoghlan
    ncoghlan
    on Oct 31, 2024
    ContributorAuthor
    More actions

    Duplicate of #126180

  9. ncoghlan
    marked this as a duplicate of Undeprecate getopt and optparse #126180 on Oct 31, 2024
  10. ncoghlan
    closed this as not plannedon Oct 31, 2024
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.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — 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.