diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-05-30 04:17:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-30 04:17:18 (GMT) |
commit | 4927596c499cf5b4437fbf30d782ce87f90572c1 (patch) | |
tree | 8955232e2c1b515e77283529f2117fd294f0849c /Python/codegen.c | |
parent | 9c2e0febb481f1c24a6397d3a4fb9422c9433ef4 (diff) | |
download | cpython-4927596c499cf5b4437fbf30d782ce87f90572c1.zip cpython-4927596c499cf5b4437fbf30d782ce87f90572c1.tar.gz cpython-4927596c499cf5b4437fbf30d782ce87f90572c1.tar.bz2 |
[3.14] ast docs: Fix description of ast.Constant (GH-134741) (#134911)
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 381020d41fb1f8b33421f01c609ba0d0edb99764)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Python/codegen.c')
0 files changed, 0 insertions, 0 deletions