mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
[3.14] gh-134733: Fix documentation for the show_empty option of ast.dump() (GH-134925) (GH-134940)
Optional None values are always omitted.
(cherry picked from commit 1a89991d23
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
ecf11416b6
commit
41fe324d8b
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue