[New-bugs-announce] [issue36195] initializer is not a valid param in ThreadPoolExecutor

Harmandeep Singh report at bugs.python.org
Tue Mar 5 09:28:02 EST 2019


New submission from Harmandeep Singh <harmandeep3091 at gmail.com>:

In Python 3.6, the docs for ThreadPoolExecutor mentions the following line:

initializer is an optional callable that is called at the start of each worker thread; initargs is a tuple of arguments passed to the initializer. Should initializer raise an exception, all currently pending jobs will raise a BrokenThreadPool, as well any attempt to submit more jobs to the pool.

But, from my experiment in Python 3.6 and 3.7, I have observed that `initializer` and `initargs` were introduced in Python 3.7.

----------
messages: 337189
nosy: harman786
priority: normal
severity: normal
status: open
title: initializer is not a valid param in ThreadPoolExecutor
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36195>
_______________________________________


More information about the New-bugs-announce mailing list