Repository navigation
Add python-comments-guide materials folder - #974
Merged
realpython-bot merged 2 commits intoDec 2, 2026
Merged
Conversation
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.
Adds the companion code for Writing Comments in Python (Guide), which has had no materials folder. The files mirror the code as the full-update draft has it (draft admin: https://realpython.com/pbjt/blog/post/2446/change/), so readers who download them get what the updated article shows. A learner survey response from 2026-05-20 reported trouble downloading the source code for this tutorial.
just do thisSyntaxError demo, the Java block, and the barereturn afragment are left out because they're meant to fail.requirements.txt. The README states the floor as Python 3.9, from the draft'sminimum-python==3.9.Card: https://trello.com/c/M1mg3O3X
Verified: ran every script on Python 3.15.2 and 3.9.25, and the output matches the article (
co_constsshows the extraNoneon 3.14 and earlier, as the article says).ruff@0.14.1 format --checkandruff checkpass, and so doesdircheck.py.🤖 Generated with Claude Code