Message321469
I disagree. Other than subclasses of thread executor, what are you going to
pass in? A mock?
On Wed, Jul 11, 2018 at 7:34 AM STINNER Victor <[email protected]>
wrote:
>
> STINNER Victor <[email protected]> added the comment:
>
> > I think we'll only allow instances of c.f.ThreadPoolExecutor (and its
> subclasses) to be passed to set_default_executor. That's a more robust
> check than just guarding against ProcessPoolExecutor.
>
> I suggest to only reject ProcessPoolExecutor, instead of having a very
> specific test on ThreadPoolExecutor which might fail with funky but valid
> thread executor.
>
> ----------
> nosy: +vstinner
>
> _______________________________________
> Python tracker <[email protected]>
> <https://bugs.python.org/issue34075>
> _______________________________________
>
--
--Guido (mobile) |
|
| Date |
User |
Action |
Args |
| 2018-07-11 14:53:02 | gvanrossum | set | recipients:
+ gvanrossum, vstinner, asvetlov, yselivanov |
| 2018-07-11 14:53:02 | gvanrossum | link | issue34075 messages |
| 2018-07-11 14:53:02 | gvanrossum | create | |
|