Skip to content

Add python-data-structures materials folder - #981

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/python-data-structures-20261202
Dec 2, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/python-data-structures-20261202

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

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/except so 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 --check and ruff check (0.14.1) pass, dircheck.py passes, vermin reports a 3.7 floor (matching the README). Standard library only, so no requirements file.

🤖 Generated with Claude Code

Sample code for the Common Python Data Structures (Guide) tutorial,
one script per section, mirroring the code in the update draft.
@realpython-bot
realpython-bot merged commit 97ad84c into master Dec 2, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/python-data-structures-20261202 branch December 2, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant