Skip to content

gh-101472: Redocument argparse.REMAINDER and its limitations - #160119

Open
savannahostrowski wants to merge 2 commits into
python:mainfrom
savannahostrowski:gh-101472-redocument-remainder
Open

savannahostrowski wants to merge 2 commits into
python:mainfrom
savannahostrowski:gh-101472-redocument-remainder

Conversation

@savannahostrowski

@savannahostrowski savannahostrowski commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

This PR brings argparse.REMAINDER back into the docs. It’s still useful, still used in the stdlib and beyond, and isn’t deprecated.

The original decision to undocument it was discussed in #61252, but I think spelling out the boundaries would better serve users. We can make it clearer what they can/should rely on and help them avoid the pitfalls that led to removing the docs in the first place.

I’ve also added focused regression tests for the boundaries described here. Since these quirks are part of what prompted undocumenting REMAINDER, I think we should test the behavior we’re now documenting.

@read-the-docs-community

read-the-docs-community Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35310607 | 📁 Comparing e830d0f against main (0a86a34)

  🔍 Preview build  

1 file changed
± library/argparse.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review docs Documentation in the Doc dir needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes skip news tests Tests in the Lib/test dir

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant