[New-bugs-announce] [issue41938] concurrent.futures.wait calls len() on an possible iterable

Kaushal Rohit report at bugs.python.org
Sun Oct 4 22:02:57 EDT 2020


New submission from Kaushal Rohit <rohit.kg98 at gmail.com>:

`fs` argument could be an iterable, and calling len on it would raise an Exception.

We are converting `fs` into a set anyways for set difference, and that too twice. we can just put an `fs = set(fs)`.

Let me know if we choose to go with that and I will make a PR ASAP.

Thanks.

----------
components: Library (Lib)
messages: 377991
nosy: rohitkg98
priority: normal
severity: normal
status: open
title: concurrent.futures.wait calls len() on an possible iterable
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41938>
_______________________________________


More information about the New-bugs-announce mailing list