diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-05-30 04:19:04 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-30 04:19:04 (GMT) |
| commit | f4b8cd5510c72ca78c3f2f02a1e12f7827377ed0 (patch) | |
| tree | 19a180a121f10a70336aaceac37110317401b9c9 /Python/pythonrun.c | |
| parent | a9ba2ecae53e9341a6303d51ccf6b7f0b8160f50 (diff) | |
| download | cpython-f4b8cd5510c72ca78c3f2f02a1e12f7827377ed0.zip cpython-f4b8cd5510c72ca78c3f2f02a1e12f7827377ed0.tar.gz cpython-f4b8cd5510c72ca78c3f2f02a1e12f7827377ed0.tar.bz2 | |
[3.13] ast docs: Fix description of ast.Constant (GH-134741) (#134912)
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/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
