[Python-checkins] (no subject)

Lumír 'Frenzy' Balhar webhook-mailer at python.org
Mon May 18 09:23:45 EDT 2020




To: python-checkins at python.org
Subject: bpo-38112: Document that compileall.compile_[dir,file] also accept
 multiple opt levels (GH-20174)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

https://github.com/python/cpython/commit/adc72bb2f9a5d8b548ee04405e19a184e569=
9e8d
commit: adc72bb2f9a5d8b548ee04405e19a184e5699e8d
branch: master
author: Lum=C3=ADr 'Frenzy' Balhar <lbalhar at redhat.com>
committer: GitHub <noreply at github.com>
date: 2020-05-18T15:23:37+02:00
summary:

bpo-38112: Document that compileall.compile_[dir,file] also accept multiple o=
pt levels (GH-20174)

files:
M Doc/library/compileall.rst

diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst
index 01ab7461e9b1c..9b914b1f0d9c6 100644
--- a/Doc/library/compileall.rst
+++ b/Doc/library/compileall.rst
@@ -181,7 +181,8 @@ Public functions
    coexist.
=20
    *optimize* specifies the optimization level for the compiler.  It is pass=
ed to
-   the built-in :func:`compile` function.
+   the built-in :func:`compile` function. Accepts also a sequence of optimiz=
ation
+   levels which lead to multiple compilations of one :file:`.py` file in one=
 call.
=20
    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.
=20
    *optimize* specifies the optimization level for the compiler.  It is pass=
ed to
-   the built-in :func:`compile` function.
+   the built-in :func:`compile` function. Accepts also a sequence of optimiz=
ation
+   levels which lead to multiple compilations of one :file:`.py` file in one=
 call.
=20
    *invalidation_mode* should be a member of the
    :class:`py_compile.PycInvalidationMode` enum and controls how the generat=
ed



More information about the Python-checkins mailing list