Skip to content

Add python-return-statement materials folder - #991

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-return-statement-20261203
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/python-return-statement-20261203

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Adds the sample code for The Python return Statement: Usage and Best Practices, built from the update draft (admin: https://realpython.com/pbjt/blog/post/2444/change/).

Trello card: https://trello.com/c/CQOXSUKZ

  • 16 stdlib-only scripts, one per tutorial section; REPL echoes turned into print()/repr() calls. The intentional SyntaxError demo and the syntax templates are left out.
  • Verified: every script ran on Python 3.15.2 with -W error, and the output matches the draft's REPL sessions (the timing value varies per run, as the article says). ruff@0.14.1 format --check, ruff check, and dircheck.py pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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