mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #23917: Fall back to sequential compilation when ProcessPoolExecutor doesn't exist.
Patch by Claudiu Popa.
This commit is contained in:
parent
c3a7f18100
commit
d86ef05a02
4 changed files with 10 additions and 9 deletions
|
@ -142,8 +142,8 @@ Public functions
|
|||
The argument *workers* specifies how many workers are used to
|
||||
compile files in parallel. The default is to not use multiple workers.
|
||||
If the platform can't use multiple workers and *workers* argument is given,
|
||||
then a :exc:`NotImplementedError` will be raised.
|
||||
If *workers* is lower than ``0``, a :exc:`ValueError` will be raised.
|
||||
then sequential compilation will be used as a fallback. If *workers* is
|
||||
lower than ``0``, a :exc:`ValueError` will be raised.
|
||||
|
||||
.. versionchanged:: 3.2
|
||||
Added the *legacy* and *optimize* parameter.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue