New submission from Kaushal Rohit <rohit.k...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue41938> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com