[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-05-11 Thread Stefan Hölzl
Stefan Hölzl added the comment: Here is a complete example. Please consider this is a very simple example just to demonstrate what would be possible with my proposed changes. In the following example you can see two things: * saving informations about the context in which a workload was submi

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-05-11 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, but in the provided snippet I see a class with an interface which looks close to executor. There is no clear relationship with standard executors (e.g. is it inherited from ThreadExecutor?). Proposed `future_factory` is also absent. Please, provide a

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-05-10 Thread Stefan Hölzl
Stefan Hölzl added the comment: It would allow to use Futures with a customized interface for a specific domain. e.g. to not only save the result of a task but also some context informations or provide properties/methods which are result specific. But when subclassing Future the builtin Thread/

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd like to know about the use case too :-) -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-05-10 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +tomMoral ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-05-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: What is your use case? -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-04-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +bquinlan, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-04-02 Thread Stefan Hölzl
Change by Stefan Hölzl : -- keywords: +patch pull_requests: +12596 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue36512] future_factory argument for Thread/ProcessPoolExecutor

2019-04-02 Thread Stefan Hölzl
New submission from Stefan Hölzl : adding a future_factory argument to Thread/ProcessPoolExecutor to control which type of Future should be created by Executor.submit -- components: Library (Lib) messages: 339364 nosy: stefanhoelzl priority: normal severity: normal status: open title: f