diff options
author | Tomas R <tomas.roun8@gmail.com> | 2024-09-18 17:28:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 17:28:22 (GMT) |
commit | 21d2a9ab2f4dcbf1be462d3b7f7a231a46bc1cb7 (patch) | |
tree | 5bb4398ecb1cd8325d109d00878b60da8e29adfd /Doc | |
parent | f9fa6ba4f8d90ae12bc1f6a792d66903bb169ba8 (diff) | |
download | cpython-21d2a9ab2f4dcbf1be462d3b7f7a231a46bc1cb7.zip cpython-21d2a9ab2f4dcbf1be462d3b7f7a231a46bc1cb7.tar.gz cpython-21d2a9ab2f4dcbf1be462d3b7f7a231a46bc1cb7.tar.bz2 |
gh-116022: Improve `repr()` of AST nodes (#117046)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ast.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index f299473..5500762 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -134,6 +134,11 @@ Node classes Simple indices are represented by their value, extended slices are represented as tuples. +.. versionchanged:: 3.14 + + The :meth:`~object.__repr__` output of :class:`~ast.AST` nodes includes + the values of the node fields. + .. deprecated:: 3.8 Old classes :class:`!ast.Num`, :class:`!ast.Str`, :class:`!ast.Bytes`, |