[Python-ideas] Add an introspection API to Executor

Antoine Pitrou antoine at python.org
Tue Aug 26 05:43:04 CEST 2014


Le 25/08/2014 23:02, Ethan Furman a écrit :
> On 08/25/2014 07:51 PM, Dan O'Reilly wrote:
>>
>> The IntrospectableQueue idea seems reasonable to me. I think I would
>> prefer passing an introspectable (or similar)
>> keyword to the Executor rather than a queue class, though.
>
> Passing the class is the better choice -- it means that future needs can
> be more easily met by designing the queue variant needed and passing it
> in -- having a keyword to select only one option is unnecessarily limiting.

What if an implementation wants to use something other than a queue?
It seems you're breaking the abstraction here.

Regards

Antoine.




More information about the Python-ideas mailing list