Skip to content

Document getopt and gnu_getopt longopts argument as string#153976

Merged
tomasr8 merged 1 commit into
python:mainfrom
flofriday:document-getopt-longopts-string
Jul 19, 2026
Merged

Document getopt and gnu_getopt longopts argument as string#153976
tomasr8 merged 1 commit into
python:mainfrom
flofriday:document-getopt-longopts-string

Conversation

@flofriday

Copy link
Copy Markdown
Contributor

The functions getopt.getopt() and getopt.gnu_getopt() can also take a str as the longopts argument which this PR now also documents as was suggested in this comment.

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jul 18, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Jul 18, 2026
@flofriday
flofriday force-pushed the document-getopt-longopts-string branch from b34ca02 to 15c323f Compare July 18, 2026 14:10
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33646642 | 📁 Comparing 15c323f against main (0fa144b)

  🔍 Preview build  

1 file changed
± library/getopt.html

@tomasr8 tomasr8 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @flofriday!

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Sprint Jul 19, 2026
@tomasr8 tomasr8 added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jul 19, 2026
@tomasr8
tomasr8 merged commit 16562f1 into python:main Jul 19, 2026
44 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @flofriday for the PR, and @tomasr8 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@github-project-automation github-project-automation Bot moved this from In Progress to Done in Sprint Jul 19, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Jul 19, 2026
@bedevere-app

bedevere-app Bot commented Jul 19, 2026

Copy link
Copy Markdown

GH-154095 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 19, 2026
@bedevere-app

bedevere-app Bot commented Jul 19, 2026

Copy link
Copy Markdown

GH-154096 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 19, 2026
@bedevere-app

bedevere-app Bot commented Jul 19, 2026

Copy link
Copy Markdown

GH-154097 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jul 19, 2026
tomasr8 pushed a commit that referenced this pull request Jul 19, 2026
…-153976) (#154097)

Document getopt and gnu_getopt longopts argument as string (GH-153976)

Document getopt and gnu_getopt longopts as string
(cherry picked from commit 16562f1)

Co-authored-by: Florian Freitag <flohacksfriday@gmail.com>
tomasr8 pushed a commit that referenced this pull request Jul 19, 2026
…-153976) (#154095)

Document getopt and gnu_getopt longopts argument as string (GH-153976)

Document getopt and gnu_getopt longopts as string
(cherry picked from commit 16562f1)

Co-authored-by: Florian Freitag <flohacksfriday@gmail.com>
tomasr8 pushed a commit that referenced this pull request Jul 19, 2026
…-153976) (#154096)

Document getopt and gnu_getopt longopts argument as string (GH-153976)

Document getopt and gnu_getopt longopts as string
(cherry picked from commit 16562f1)

Co-authored-by: Florian Freitag <flohacksfriday@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news sprint

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants