File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,11 @@ and classes for traversing abstract syntax trees:
129
129
Parse the source into an AST node. Equivalent to ``compile(source,
130
130
filename, mode, ast.PyCF_ONLY_AST) ``.
131
131
132
+ .. warning ::
133
+ It is possible to crash the Python interpreter with a
134
+ sufficiently large/complex string due to stack depth limitations
135
+ in Python's AST compiler.
136
+
132
137
133
138
.. function :: literal_eval(node_or_string)
134
139
@@ -142,6 +147,11 @@ and classes for traversing abstract syntax trees:
142
147
capable of evaluating arbitrarily complex expressions, for example involving
143
148
operators or indexing.
144
149
150
+ .. warning ::
151
+ It is possible to crash the Python interpreter with a
152
+ sufficiently large/complex string due to stack depth limitations
153
+ in Python's AST compiler.
154
+
145
155
146
156
.. function :: get_docstring(node, clean=True)
147
157
You can’t perform that action at this time.
0 commit comments