Skip to content

Add materials folders for 8 tutorials that had none - #895

Merged
martin-martin merged 1 commit into
masterfrom
materials/add-8-missing-folders-20261019
Oct 19, 2026
Merged

martin-martin merged 1 commit into
masterfrom
materials/add-8-missing-folders-20261019

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds companion code folders for eight tutorials that ship runnable code but had no folder in this repo. Each folder mirrors the tutorial's current update draft (the maintenance pass that's waiting to publish), and each tutorial gets a new "Get Your Code" opt-in pointing here.

Folder Tutorial Card
python-recursion/ Recursion in Python: An Introduction https://trello.com/c/bx0RUdp3
operator-function-overloading/ Operator and Function Overloading in Custom Python Classes https://trello.com/c/p7Zj4vLJ
python-data-classes/ Data Classes in Python (Guide) https://trello.com/c/oJe29p14
documenting-python-code/ Documenting Python Code: A Complete Guide https://trello.com/c/m28yftJr
python-sql-libraries/ Introduction to Python SQL Libraries https://trello.com/c/VSyqBITh
regex-python/ Regular Expressions: Regexes in Python (Part 1) https://trello.com/c/iulwU3aV
regex-python-part-2/ Regular Expressions: Regexes in Python (Part 2) https://trello.com/c/jpN9paBb
modeling-polymorphism-django-python/ Modeling Polymorphism in Django With Python https://trello.com/c/8MkMunVf

What's in each folder

  • Runnable scripts/modules carrying the tutorial's code, a README.md (file list, usage examples, real minimum Python version), and a pinned requirements.txt where third-party packages are used (python-data-classes, documenting-python-code, python-sql-libraries, modeling-polymorphism-django-python).
  • The two regex tutorials are almost entirely REPL sessions, so their folders hold section-organized scripts that run the key examples with the expected output as comments.
  • modeling-polymorphism-django-python/ is a runnable Django 6.1 project (bookstore) with one app per modeling technique and generated migrations. Each app's Cart.user has a related_name so the six apps can coexist in one project.

How it was verified

  • Every script run and every module imported on Python 3.14; README examples and a representative set of each tutorial's REPL outputs reproduced.
  • python-sql-libraries/: run end to end against SQLite, MariaDB 10.11 (standing in for MySQL), and PostgreSQL 16.
  • modeling-polymorphism-django-python/: manage.py check, makemigrations --check, migrate, and the tutorial's ORM sessions via manage.py shell -c.
  • uvx ruff@0.14.1 format --check and uvx ruff@0.14.1 check with the repo config, and .github/workflows/dircheck.py: all clean.

Code matches the tutorials except where it had to change to run or lint (formatting, a # noqa for an intentionally unused variable, a portable SQLite path instead of E:\\). Bugs found in the tutorials' own code are being reported on the maintenance cards so the articles can be fixed too.

🤖 Generated with Claude Code

Adds companion code for Recursion in Python, Operator and Function
Overloading, Data Classes, Documenting Python Code, Python SQL
Libraries, Regex Parts 1 and 2, and Modeling Polymorphism in Django.
Each folder mirrors its tutorial's current update draft and was
verified by running it on Python 3.14.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@martin-martin
martin-martin merged commit 9a30938 into master Oct 19, 2026
1 check passed
@martin-martin
martin-martin deleted the materials/add-8-missing-folders-20261019 branch October 19, 2026 17:30
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.

2 participants