[issue45339] concurrent.future.ThreadPoolExecutor should parameterize class used for threads

Andrew Svetlov report at bugs.python.org
Tue Feb 1 04:10:18 EST 2022


Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:

I guess if you are asking for initialization and finalization of thread-specific data in a thread pool -- you need exactly these things (or a context manager).
A custom thread class reveals too many implementation details.
I personally prefer an explicit initializer/finalizer based approach.

----------

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


More information about the Python-bugs-list mailing list