[issue22737] Provide a rejected execution model and implementations for futures.

2014-10-26 Thread Joshua Harlow
New submission from Joshua Harlow: When a future can't be accepted by an executor that it is has been submitted to it would be really nice to throw have a type of 'RejectedExecutionException' (this is the name the java folks have used) to denote that the executors policy doe

[issue24451] Add metrics to future objects (concurrent or asyncio?)

2015-06-14 Thread Joshua Harlow
New submission from Joshua Harlow: It would be quite useful to have some types of metrics attached to future objects so that callers could use them for various activities (scheduling repeated runs, post-analysis and such): Some of the ones that I can think would be useful: - 'submitt

[issue24451] Add metrics to future objects (concurrent or asyncio?)

2015-06-15 Thread Joshua Harlow
Joshua Harlow added the comment: I like the pluggable/hookable idea, that would be nice (I'm siding on the side of hookable, since I think that would be more 'elegant'). If these are just callbacks that can be hooked in for these specific 'events' that would allow

[issue24451] Add metrics to future objects (concurrent or asyncio?)

2015-06-15 Thread Joshua Harlow
Joshua Harlow added the comment: A prototype (WIP) of how this could work, initial thoughts welcome :-) -- keywords: +patch Added file: http://bugs.python.org/file39711/prototype.patch ___ Python tracker <http://bugs.python.org/issue24

[issue24598] asyncio: add background task detecting reference cycles

2015-07-09 Thread Joshua Harlow
Joshua Harlow added the comment: Out of curiosity what reference cycles can't be broken in various python versions? Is it documented/explained anywhere? -- nosy: +Joshua.Harlow ___ Python tracker <http://bugs.python.org/is

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-09-01 Thread Joshua Harlow
New submission from Joshua Harlow: In situations where thread-local variables need to be setup it is quite useful to be able to hook into the thread creation process, so that as each new thread is spun up by the ThreadPoolExecutor that the threads created initially call into a provided

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-09-01 Thread Joshua Harlow
Changes by Joshua Harlow : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue24980> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-09-01 Thread Joshua Harlow
Changes by Joshua Harlow : -- versions: +Python 3.6 ___ Python tracker <http://bugs.python.org/issue24980> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-09-01 Thread Joshua Harlow
Changes by Joshua Harlow : -- components: +Library (Lib) ___ Python tracker <http://bugs.python.org/issue24980> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-09-01 Thread Joshua Harlow
Joshua Harlow added the comment: Initial possible patch. -- keywords: +patch type: enhancement -> Added file: http://bugs.python.org/file40318/add_future_callback.patch ___ Python tracker <http://bugs.python.org/issu