Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ast docs: Fix description of ast.Constant#134741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelleZijlstra merged 1 commit intopython:mainfromJelleZijlstra:ast-constant
May 30, 2025

Conversation

JelleZijlstra
Copy link
Member

@JelleZijlstraJelleZijlstra commentedMay 26, 2025
edited by github-actionsbot
Loading

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.


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

15r10nk reacted with heart emoji
Contrary to the current docs, ast.Constant will never hold containerssuch as frozenset or tuple; the Python parser only emits it for simpleliterals.For precision, add the exact list of types that may be contained in anast.Constant.
@JelleZijlstraJelleZijlstra merged commit381020d intopython:mainMay 30, 2025
37 checks passed
@github-project-automationgithub-project-automationbot moved this fromTodo toDone inDocs PRsMay 30, 2025
@miss-islington-app
Copy link

Thanks@JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 30, 2025
Contrary to the current docs, ast.Constant will never hold containerssuch as frozenset or tuple; the Python parser only emits it for simpleliterals.For precision, add the exact list of types that may be contained in anast.Constant.(cherry picked from commit381020d)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@bedevere-app
Copy link

GH-134911 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMay 30, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 30, 2025
Contrary to the current docs, ast.Constant will never hold containerssuch as frozenset or tuple; the Python parser only emits it for simpleliterals.For precision, add the exact list of types that may be contained in anast.Constant.(cherry picked from commit381020d)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@bedevere-app
Copy link

GH-134912 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMay 30, 2025
JelleZijlstra added a commit that referenced this pull requestMay 30, 2025
Contrary to the current docs, ast.Constant will never hold containerssuch as frozenset or tuple; the Python parser only emits it for simpleliterals.For precision, add the exact list of types that may be contained in anast.Constant.(cherry picked from commit381020d)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
JelleZijlstra added a commit that referenced this pull requestMay 30, 2025
Contrary to the current docs, ast.Constant will never hold containerssuch as frozenset or tuple; the Python parser only emits it for simpleliterals.For precision, add the exact list of types that may be contained in anast.Constant.(cherry picked from commit381020d)Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@srittausrittausrittau approved these changes

Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip issueskip news
Projects
Status: Done
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@JelleZijlstra@srittau

[8]ページ先頭

©2009-2025 Movatter.jp