From 9411c145d4ee2d2bc9adc2f34dba223b39099465 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Wed, 29 Apr 2020 16:38:58 -0700 Subject: [PATCH] bpo-40445: Update compileall.compile_dir docs --- Doc/library/compileall.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst index b1ae9d60e8ae14..78f8da049ccac8 100644 --- a/Doc/library/compileall.rst +++ b/Doc/library/compileall.rst @@ -150,7 +150,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 @@ -220,6 +220,7 @@ Public functions .. versionchanged:: 3.9 Added *stripdir*, *prependdir* and *limit_sl_dest* 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)