Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 30, 2025

Contrary to the current docs, ast.Constant will never hold containers
such as frozenset or tuple; the Python parser only emits it for simple
literals.

For precision, add the exact list of types that may be contained in an
ast.Constant.
(cherry picked from commit 381020d)

Co-authored-by: Jelle Zijlstra [email protected]


📚 Documentation preview 📚: https://cpython-previews--134912.org.readthedocs.build/

Contrary to the current docs, ast.Constant will never hold containers
such as frozenset or tuple; the Python parser only emits it for simple
literals.

For precision, add the exact list of types that may be contained in an
ast.Constant.
(cherry picked from commit 381020d)

Co-authored-by: Jelle Zijlstra <[email protected]>
@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir labels May 30, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs May 30, 2025
@JelleZijlstra JelleZijlstra enabled auto-merge (squash) May 30, 2025 04:12
@JelleZijlstra JelleZijlstra merged commit f4b8cd5 into python:3.13 May 30, 2025
28 of 29 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants