Repository navigation
Add python-data-structures materials folder - #981
Merged
realpython-bot merged 2 commits intoDec 2, 2026
Merged
Conversation
Sample code for the Common Python Data Structures (Guide) tutorial, one script per section, mirroring the code in the update draft.
realpython-bot
deleted the
maintenance/python-data-structures-20261202
branch
December 2, 2026 07:10
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 Common Python Data Structures (Guide): one script per tutorial section (dictionaries, arrays, records, sets, stacks, queues, priority queues), mirroring the REPL examples in the update draft as runnable scripts. Examples that demonstrate an error are wrapped in
try/exceptso each script runs to completion, and the blocking.get()calls are left out.Verification: ran every script on CPython 3.15.2 (exit 0, output matches the draft's REPL sessions apart from object addresses and set ordering),
ruff format --checkandruff check(0.14.1) pass,dircheck.pypasses, vermin reports a 3.7 floor (matching the README). Standard library only, so no requirements file.🤖 Generated with Claude Code