Skip to content

Commit a2b3cdd

Browse files
authored
bpo-40445: Update compileall.compile_dir docs (GH-19806)
1 parent 6a5d3ff commit a2b3cdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/compileall.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Public functions
155155
and a false value otherwise.
156156

157157
The *maxlevels* parameter is used to limit the depth of the recursion; it
158-
defaults to ``10``.
158+
defaults to ``sys.getrecursionlimit()``.
159159

160160
If *ddir* is given, it is prepended to the path to each file being compiled
161161
for use in compilation time tracebacks, and is also compiled in to the
@@ -228,6 +228,7 @@ Public functions
228228

229229
.. versionchanged:: 3.9
230230
Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* arguments.
231+
Default value of *maxlevels* was changed from ``10`` to ``sys.getrecursionlimit()``
231232

232233
.. 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)
233234

0 commit comments

Comments
 (0)