Skip to content

Add support for PEP 798 and 810#5048

Merged
JelleZijlstra merged 6 commits intopsf:mainfrom
JelleZijlstra:codex/python315-upstream-main
Mar 21, 2026
Merged

Add support for PEP 798 and 810#5048
JelleZijlstra merged 6 commits intopsf:mainfrom
JelleZijlstra:codex/python315-upstream-main

Conversation

@JelleZijlstra
Copy link
Collaborator

Fixes #5042

@github-actions
Copy link
Contributor

diff-shades results comparing this PR (b71f022) to main (69cfa4c):

--preview style: no changes

--stable style: no changes


What is this? | Workflow run | diff-shades documentation

@hugovk
Copy link
Contributor

hugovk commented Mar 20, 2026

GitHub failed to download the checkout action! 🙃

Download action repository 'actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd' (SHA:de0fac2e4500dabe0009e67214ff5f5447ce83dd)
Warning: Failed to download action 'https://api.github.com/repos/actions/checkout/zipball/de0fac2e4500dabe0009e67214ff5f5447ce83dd'. Error: Response status code does not indicate success: 401 (Unauthorized). 4400:CAD68:68A901:1B6E0D1:69B23CFA

Maybe it's feeling better now?

@JelleZijlstra
Copy link
Collaborator Author

All green now, thanks to the retry fairy!

@tusharsadhwani
Copy link
Collaborator

tusharsadhwani commented Mar 20, 2026

I would prefer to put lazy as a keyword in pytokens instead of working around the grammar. Would you mind if I did that change on top?

@JelleZijlstra
Copy link
Collaborator Author

Go ahead!

@tusharsadhwani
Copy link
Collaborator

After rethinking, I am happy with doing this in black. pytokens will mimic cpython for lazy being NAME tokens.

@tusharsadhwani
Copy link
Collaborator

Let's merge!

@JelleZijlstra JelleZijlstra merged commit cbbbf64 into psf:main Mar 21, 2026
78 of 79 checks passed
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.

Support lazy imports

3 participants