X Tutup

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Antony.Lee, brett.cannon, hrik2001, mark.dickinson, rhettinger, vstinner
Date 2021-08-30.15:51:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630338713.62.0.952620825379.issue44019@roundup.psfhosted.org>
In-reply-to
Content
> An actual use case I had for such an operator was collecting a bunch of callables in a list and wanting to dispatch them to concurrent.futures.Executor.map, i.e. something like `executor.map(operator.call, funcs)` (to get the parallelized version of `[func() for func in funcs]`).

Can't you use functools.partial() for that?
History
Date User Action Args
2021-08-30 15:51:53vstinnersetrecipients: + vstinner, brett.cannon, rhettinger, mark.dickinson, Antony.Lee, hrik2001
2021-08-30 15:51:53vstinnersetmessageid: <1630338713.62.0.952620825379.issue44019@roundup.psfhosted.org>
2021-08-30 15:51:53vstinnerlinkissue44019 messages
2021-08-30 15:51:53vstinnercreate
X Tutup