[issue21423] concurrent.futures.ThreadPoolExecutor should accept an initializer argument

Mark Dickinson report at bugs.python.org
Wed May 7 09:55:59 CEST 2014


Mark Dickinson added the comment:

BTW, I think there's a design mistake in the EnhancedThreadPoolExecutor that's worth avoiding in any std. lib. implementation: the initialiser and uninitialiser for the EnhancedThreadPoolExecutor accept no arguments. In retrospect, it would have been better to have them take the thread itself as a single argument.  We often found ourselves needing this - it's not hard to work around with a threading.current_thread() call, but it's mildly annoying to have to do so.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21423>
_______________________________________


More information about the Python-bugs-list mailing list