Sample code for: Python 3.15: Cool New Features for You to Try - #862
Open
bzaczynski wants to merge 1 commit into
Open
bzaczynski wants to merge 1 commit into
bzaczynski wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
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.
Where to put new files:
my-awesome-articleHow to merge your changes:
Code examples for the Python 3.15: Cool New Features for You to Try tutorial. Files live in the
python315-new-features/top-level folder, named after the article slug.lazy_json.py,typeform_check.py,typeddict.py,ctxmgr.py,python315_in_15_lines.py: extracted verbatim from the tutorialwordstats.py,menu.txt: files the tutorial references as part of the downloadable materials (profiler and UTF-8 sections)requirements.txt: pinspyright==1.1.414, used for the static typing examplesRuff exclusion:
pyproject.tomlnow excludespython315-new-features, likepython315-lazy-importsandpython315-frozendict, because the pinned ruff 0.14.1 can't parse the newlazy importsyntax. The scripts are also kept unformatted on purpose, so Pyright's reported line numbers match the ones shown in the tutorial.Verified on Python 3.15.0rc2 (and 3.14 for
ctxmgr.py). Output matches the tutorial, including Pyright 1.1.414 diagnostics and the Tachyon profiler rows forwordstats.py.Generated from the tutorial markdown with the
post-materialsskill, then verified locally before pushing.🤖 Generated with Claude Code