Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit getopt and optparse soft deprecations #126225

Closed
ncoghlan opened this issue Oct 31, 2024 · 4 comments
Closed

Revisit getopt and optparse soft deprecations #126225

ncoghlan opened this issue Oct 31, 2024 · 4 comments
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes docs Documentation in the Doc dir stdlib Python modules in the Lib dir

Comments

@ncoghlan
Copy link
Contributor

ncoghlan commented Oct 31, 2024

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

@ncoghlan ncoghlan added docs Documentation in the Doc dir stdlib Python modules in the Lib dir 3.13 bugs and security fixes 3.14 new features, bugs and security fixes labels Oct 31, 2024
@ncoghlan
Copy link
Contributor Author

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

@zware
Copy link
Member

zware commented Oct 31, 2024

See also gh-126180/GH-126186.

@ncoghlan
Copy link
Contributor Author

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

@ncoghlan
Copy link
Contributor Author

Duplicate of #126180

@ncoghlan ncoghlan marked this as a duplicate of #126180 Oct 31, 2024
@ncoghlan ncoghlan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes docs Documentation in the Doc dir stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

2 participants