[Python-checkins] bpo-40445: Update compileall.compile_dir docs (GH-19806)

Shantanu webhook-mailer at python.org
Fri May 15 17:28:27 EDT 2020


https://github.com/python/cpython/commit/a2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011
commit: a2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011
branch: master
author: Shantanu <hauntsaninja at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-05-15T14:28:23-07:00
summary:

bpo-40445: Update compileall.compile_dir docs (GH-19806)

files:
M Doc/library/compileall.rst

diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst
index a511c7eda265b..01ab7461e9b1c 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)
 



More information about the Python-checkins mailing list