From: Lumír 'Frenzy' Balhar Date: Mon, 18 May 2020 13:23:37 +0000 (+0200) Subject: bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt level... X-Git-Tag: v3.9.0b1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=adc72bb2f9a5d8b548ee04405e19a184e5699e8d;p=thirdparty%2FPython%2Fcpython.git bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt levels (GH-20174) --- diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst index 01ab7461e9b1..9b914b1f0d9c 100644 --- a/Doc/library/compileall.rst +++ b/Doc/library/compileall.rst @@ -181,7 +181,8 @@ Public functions coexist. *optimize* specifies the optimization level for the compiler. It is passed to - the built-in :func:`compile` function. + the built-in :func:`compile` function. Accepts also a sequence of optimization + levels which lead to multiple compilations of one :file:`.py` file in one call. The argument *workers* specifies how many workers are used to compile files in parallel. The default is to not use multiple workers. @@ -256,7 +257,8 @@ Public functions coexist. *optimize* specifies the optimization level for the compiler. It is passed to - the built-in :func:`compile` function. + the built-in :func:`compile` function. Accepts also a sequence of optimization + levels which lead to multiple compilations of one :file:`.py` file in one call. *invalidation_mode* should be a member of the :class:`py_compile.PycInvalidationMode` enum and controls how the generated