]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-134733: Fix documentation for the show_empty option of ast.dump() (GH-13492...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 30 May 2025 16:30:26 +0000 (18:30 +0200)
committerGitHub <noreply@github.com>
Fri, 30 May 2025 16:30:26 +0000 (19:30 +0300)
Optional None values are always omitted.
(cherry picked from commit 1a89991d2362867a9127e151376135615bc92a4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/ast.rst

index eb5bcd00122d974bcac8de77a601780e6e78336c..ec6a4a82d6fd7f313c5bbf624a755f86ba083f05 100644 (file)
@@ -2440,8 +2440,9 @@ and classes for traversing abstract syntax trees:
    indents that many spaces per level.  If *indent* is a string (such as ``"\t"``),
    that string is used to indent each level.
 
-   If *show_empty* is ``False`` (the default), empty lists and fields that are ``None``
-   will be omitted from the output.
+   If *show_empty* is false (the default), optional empty lists will be
+   omitted from the output.
+   Optional ``None`` values are always omitted.
 
    .. versionchanged:: 3.9
       Added the *indent* option.