diff options
author | LumÃr 'Frenzy' Balhar <lbalhar@redhat.com> | 2020-05-18 13:23:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 13:23:37 (GMT) |
commit | adc72bb2f9a5d8b548ee04405e19a184e5699e8d (patch) | |
tree | cd18c7c904a3154e3f05f27169a6655ea0f7b5e6 /Doc/library/compileall.rst | |
parent | 0da546665075aefbb476e192ed64122d340164f4 (diff) | |
download | cpython-adc72bb2f9a5d8b548ee04405e19a184e5699e8d.zip cpython-adc72bb2f9a5d8b548ee04405e19a184e5699e8d.tar.gz cpython-adc72bb2f9a5d8b548ee04405e19a184e5699e8d.tar.bz2 |
bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt levels (GH-20174)
Diffstat (limited to 'Doc/library/compileall.rst')
-rw-r--r-- | Doc/library/compileall.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst index 01ab746..9b914b1 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 |