summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/ast.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/ast.rst b/Doc/library/ast.rst
index 6c6ad01..25cb178 100644
--- a/Doc/library/ast.rst
+++ b/Doc/library/ast.rst
@@ -1553,7 +1553,12 @@ and classes for traversing abstract syntax trees:
.. warning::
The produced code string will not necessarily be equal to the original
- code that generated the :class:`ast.AST` object.
+ code that generated the :class:`ast.AST` object (without any compiler
+ optimizations, such as constant tuples/frozensets).
+
+ .. warning::
+ Trying to unparse a highly complex expression would result with
+ :exc:`RecursionError`.
.. versionadded:: 3.9