summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShantanu <hauntsaninja@users.noreply.github.com>2020-05-15 21:28:23 (GMT)
committerGitHub <noreply@github.com>2020-05-15 21:28:23 (GMT)
commita2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011 (patch)
tree80cef1852fb0aecc7e6628962addb42b7c37be9f
parent6a5d3ff67644af42b1a781be2eacb2e82913441c (diff)
downloadcpython-a2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011.zip
cpython-a2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011.tar.gz
cpython-a2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011.tar.bz2
bpo-40445: Update compileall.compile_dir docs (GH-19806)
-rw-r--r--Doc/library/compileall.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst
index a511c7e..01ab746 100644
--- a/Doc/library/compileall.rst
+++ b/Doc/library/compileall.rst
@@ -155,7 +155,7 @@ Public functions
and a false value otherwise.
The *maxlevels* parameter is used to limit the depth of the recursion; it
- defaults to ``10``.
+ defaults to ``sys.getrecursionlimit()``.
If *ddir* is given, it is prepended to the path to each file being compiled
for use in compilation time tracebacks, and is also compiled in to the
@@ -228,6 +228,7 @@ Public functions
.. versionchanged:: 3.9
Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* arguments.
+ Default value of *maxlevels* was changed from ``10`` to ``sys.getrecursionlimit()``
.. function:: compile_file(fullname, ddir=None, force=False, rx=None, quiet=0, legacy=False, optimize=-1, invalidation_mode=None, \*, stripdir=None, prependdir=None, limit_sl_dest=None, hardlink_dupes=False)