Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-124694: Document missing ctxkwargs argument in ThreadPoolExecutor #134321

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
Loading
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Revert "changing versionchanged to versionadded"
  • Loading branch information
donBarbos committed May 20, 2025
commit 850564d16b1314d6fb4b216613862ebb3e57e8f1
16 changes: 8 additions & 8 deletions 16 Doc/library/concurrent.futures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ Executor Objects
:class:`ThreadPoolExecutor` and :class:`InterpreterPoolExecutor`,
*chunksize* has no effect.

.. versionadded:: 3.5
.. versionchanged:: 3.5
Added the *chunksize* parameter.

.. versionadded:: 3.14
.. versionchanged:: 3.14
Added the *buffersize* parameter.

.. method:: shutdown(wait=True, *, cancel_futures=False)
Expand Down Expand Up @@ -114,7 +114,7 @@ Executor Objects
e.submit(shutil.copy, 'src4.txt', 'dest4.txt')

.. versionadded:: 3.9
Added *cancel_futures*.
Added the *cancel_futures* parameter.


ThreadPoolExecutor
Expand Down Expand Up @@ -181,12 +181,12 @@ And::
should be higher than the number of workers
for :class:`ProcessPoolExecutor`.

.. versionadded:: 3.6
.. versionchanged:: 3.6
Added the *thread_name_prefix* parameter to allow users to
control the :class:`threading.Thread` names for worker threads created by
the pool for easier debugging.

.. versionadded:: 3.7
.. versionchanged:: 3.7
Added the *initializer* and *initargs* arguments.

.. versionchanged:: 3.8
Expand All @@ -202,7 +202,7 @@ And::
Default value of *max_workers* is changed to
``min(32, (os.process_cpu_count() or 1) + 4)``.

.. versionadded:: 3.14
.. versionchanged:: 3.14
Added *ctxkwargs* to pass additional arguments to ``cls.prepare_context``
class method.

Expand Down Expand Up @@ -402,13 +402,13 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
was undefined but operations on the executor or its futures would often
freeze or deadlock.

.. versionadded:: 3.7
.. versionchanged:: 3.7
The *mp_context* argument was added to allow users to control the
start_method for worker processes created by the pool.

Added the *initializer* and *initargs* arguments.

.. versionadded:: 3.11
.. versionchanged:: 3.11
The *max_tasks_per_child* argument was added to allow users to
control the lifetime of workers in the pool.

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.