diff options
author | Batuhan Taskaya <batuhanosmantaskaya@gmail.com> | 2020-10-04 00:46:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 00:46:44 (GMT) |
commit | e799aa8b92c195735f379940acd9925961ad04ec (patch) | |
tree | a0308940ce67e0535be861bfc94f3d830bba6734 /Doc/library/ast.rst | |
parent | 7f54e563dc150cd670ca8df678437455c3a7f2cd (diff) | |
download | cpython-e799aa8b92c195735f379940acd9925961ad04ec.zip cpython-e799aa8b92c195735f379940acd9925961ad04ec.tar.gz cpython-e799aa8b92c195735f379940acd9925961ad04ec.tar.bz2 |
bpo-41887: omit leading spaces/tabs on ast.literal_eval (#22469)
Also document that eval() does this (the same way).
Diffstat (limited to 'Doc/library/ast.rst')
-rw-r--r-- | Doc/library/ast.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst index 755c60f..62138ef 100644 --- a/Doc/library/ast.rst +++ b/Doc/library/ast.rst @@ -1586,6 +1586,9 @@ and classes for traversing abstract syntax trees: .. versionchanged:: 3.9 Now supports creating empty sets with ``'set()'``. + .. versionchanged:: 3.10 + For string inputs, leading spaces and tabs are now stripped. + .. function:: get_docstring(node, clean=True) @@ -1820,4 +1823,4 @@ to stdout. Otherwise, the content is read from stdin. `Parso <https://parso.readthedocs.io>`_ is a Python parser that supports error recovery and round-trip parsing for different Python versions (in multiple Python versions). Parso is also able to list multiple syntax errors - in your python file.
\ No newline at end of file + in your python file. |