Commit 8eb27cc3 authored by Ashley Whetter's avatar Ashley Whetter Committed by Serhiy Storchaka

bpo-32758: Warn that compile() can crash when compiling to an AST object (GH-6043) (GH-16566)

(cherry picked from commit f7a6ff6f)
Co-authored-by: default avatarBrett Cannon <brettcannon@users.noreply.github.com>
parent bef8d9ac
......@@ -248,6 +248,12 @@ section.
character. This is to facilitate detection of incomplete and complete
statements in the :mod:`code` module.
.. warning::
It is possible to crash the Python interpreter with a
sufficiently large/complex string when compiling to an AST
object due to stack depth limitations in Python's AST compiler.
.. versionchanged:: 2.3
The *flags* and *dont_inherit* arguments were added.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment