Skip to content

bpo-38112: Document that compileall.compile_[dir,file] also accept multiple opt levels #20174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Doc/library/compileall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down