Repository navigation
Sync python-argparse with the updated tutorial - #921
Merged
realpython-bot merged 1 commit intoOct 24, 2026
Merged
realpython-bot merged 1 commit into
realpython-bot merged 1 commit into
Conversation
…e Interfaces With Python's argparse Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
realpython-bot
deleted the
maintenance/command-line-interfaces-python-argparse-20261024
branch
October 24, 2026 07:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs
python-argparse/with the maintenance update of Build Command-Line Interfaces With Python's argparse.What changed
days.pytoweekdays.pyandcoordinates.pytopoint.py, matching the filenames the tutorial saves and now runs in its console examples.wheelfromhello_cli/pyproject.tomlbuild requirements and raised the floor tosetuptools>=64.0.0, matching the tutorial (setuptools no longer needswheeland recommends against listing it).actions.py,cooking.py,custom_action.py,divide.py,files.py,fromfile.py,point.py, andsize.pyin line with the tutorial's code: the parser variable isparser, as in the tutorial, anddivide.pyusestype=int, as the tutorial shows.ls_v*.pyandcalc.pyfiles as they are. The tutorial shows excerpts or differently wrapped versions of them, and the folder's full versions are correct.Verification
invalid choiceerrors fromsize.pyandweekdays.py.hello_clifrom the newpyproject.tomlon Python 3.15.1, and it builds withoutwheel. The package modules are still the tutorial's layout stubs, so thehello_clientry point doesn't run, and that was already true before this change.ruff@0.14.1 format --checkandruff@0.14.1 checkboth pass on the folder.Draft update: https://realpython.com/pbjt/blog/post/2573/change/
Maintenance card: https://trello.com/c/aqRcqOIu
🤖 Generated with Claude Code