[issue41938] concurrent.futures.wait calls len() on an possible iterable

2020-10-04 Thread Kaushal Rohit
Change by Kaushal Rohit : -- keywords: +patch pull_requests: +21553 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22555 ___ Python tracker <https://bugs.python.org/issu

[issue41938] concurrent.futures.wait calls len() on an possible iterable

2020-10-04 Thread Kaushal Rohit
New submission from Kaushal Rohit : `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

[issue42001] Deprecate `typing.io` Wrapper Namespace

2020-10-10 Thread Kaushal Rohit
New submission from Kaushal Rohit : The `typing` module has a wrapper namespace in it called `typing.io` which contain I/O stream types. These types are now a part of the `typing` module itself. While we are at it, should we also deprecate `typing.re`? -- components: Library (Lib