Skip to content

Add python-modules-packages materials for the modules and packages tutorial - #908

Merged
realpython-bot merged 2 commits into
masterfrom
maintenance/python-modules-packages-20261021
Oct 21, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
maintenance/python-modules-packages-20261021

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds a new python-modules-packages folder for Python Modules and Packages – An Introduction, which ships code but had no materials folder.

  • The article rewrites mod.py and pkg/ several times, so each stage has its own subfolder (module_basics/, main_guard/, package_init_data/, import_star_all/, subpackages_relative/, ...), following the python-circular-imports layout. README has a stage table with run examples.
  • Standard library only. Intentional lint breaks (bottom-of-file imports, import a, b) carry # noqa.

Verified: every script and REPL example reproduces the article's output on Python 3.14.6; ruff 0.14.1 format/check and dircheck.py pass. Needs to merge before the article update goes live (its -code opt-in points here).

Credit: Martin Breuss (maintenance pipeline owner).

🤖 Generated with Claude Code

@realpython-bot
realpython-bot merged commit 9f1240f into master Oct 21, 2026
1 check passed
@realpython-bot
realpython-bot deleted the maintenance/python-modules-packages-20261021 branch October 21, 2026 15:45
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