[issue24767] can concurrent.futures len(Executor) return the number of tasks?

2019-05-07 Thread Brian Quinlan
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

[issue24767] can concurrent.futures len(Executor) return the number of tasks?

2015-07-31 Thread Antoine Pitrou
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

[issue24767] can concurrent.futures len(Executor) return the number of tasks?

2015-07-31 Thread Pat Riehecky
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.

[issue24767] can concurrent.futures len(Executor) return the number of tasks?

2015-07-31 Thread Pat Riehecky
Pat Riehecky added the comment: works for me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24767 ___ ___ Python-bugs-list mailing list