Brian Quinlan added the comment:
If we supported this, aren't we promising that we will always materialize the
iterator passed to map?
I think that we'd need a really strong use-case for this to be worth-while.
--
___
Python tracker
Antoine Pitrou added the comment:
I don't think len() is a good idea for this, it's not obvious enough (why the
number of tasks and not the number of threads/processes, for example?). Also,
len() can make the object evaluate false-y in a boolean context, if len()
returns 0.
A dedicated
New submission from Pat Riehecky:
As a feature request, can the Executor respond to a len() request by showing
the number of non-finished/non-canceled items in the pool?
I would like a clean pythonic way of seeing how many items remain to be
executed and this seemed the way to go.
Pat Riehecky added the comment:
works for me
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24767
___
___
Python-bugs-list mailing list