https://github.com/python/cpython/commit/1a89991d2362867a9127e151376135615bc92a4c
commit: 1a89991d2362867a9127e151376135615bc92a4c
branch: main
author: Serhiy Storchaka <storch...@gmail.com>
committer: serhiy-storchaka <storch...@gmail.com>
date: 2025-05-30T15:52:36Z
summary:

gh-134733: Fix documentation for the show_empty option of ast.dump() (GH-134925)

Optional None values are always omitted.

files:
M Doc/library/ast.rst

diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index cf22250cac6091..ca0654acb33689 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -2445,8 +2445,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.

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to