https://github.com/python/cpython/commit/c8ea8676d931a3b42a428123070628f9ba8390db commit: c8ea8676d931a3b42a428123070628f9ba8390db branch: main author: An Long <[email protected]> committer: chris-eibl <[email protected]> date: 2026-09-03T19:10:24+02:00 summary:
gh-94242: Clarify comments for _MAX_WINDOWS_WORKERS in concurrent.futures.process (#135537) files: M Lib/concurrent/futures/process.py diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py index c130259acb737ab..7f4f225c0ad4fbd 100644 --- a/Lib/concurrent/futures/process.py +++ b/Lib/concurrent/futures/process.py @@ -119,10 +119,11 @@ def _python_exit(): # On Windows, WaitForMultipleObjects is used to wait for processes to finish. -# It can wait on, at most, 63 objects. There is an overhead of two objects: +# It can wait on, at most, 64 objects. There is an overhead of three objects: # - the result queue reader # - the thread wakeup reader -_MAX_WINDOWS_WORKERS = 63 - 2 +# - the SIGINT handler +_MAX_WINDOWS_WORKERS = 64 - 3 # Hack to embed stringification of remote traceback in local traceback _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
