Skip to content

Commit adc72bb

Browse files
bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt levels (GH-20174)
1 parent 0da5466 commit adc72bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/library/compileall.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ Public functions
181181
coexist.
182182

183183
*optimize* specifies the optimization level for the compiler. It is passed to
184-
the built-in :func:`compile` function.
184+
the built-in :func:`compile` function. Accepts also a sequence of optimization
185+
levels which lead to multiple compilations of one :file:`.py` file in one call.
185186

186187
The argument *workers* specifies how many workers are used to
187188
compile files in parallel. The default is to not use multiple workers.
@@ -256,7 +257,8 @@ Public functions
256257
coexist.
257258

258259
*optimize* specifies the optimization level for the compiler. It is passed to
259-
the built-in :func:`compile` function.
260+
the built-in :func:`compile` function. Accepts also a sequence of optimization
261+
levels which lead to multiple compilations of one :file:`.py` file in one call.
260262

261263
*invalidation_mode* should be a member of the
262264
:class:`py_compile.PycInvalidationMode` enum and controls how the generated

0 commit comments

Comments
 (0)