[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
Change by Alex DeLorenzo : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue44176> ___ ___ Python-bugs-list mailing list Unsub

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
Change by Alex DeLorenzo : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue44176> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44176] asyncio.as_completed() raises TypeError when the first supplied parameter is a generator that yields awaitables

2021-05-18 Thread Alex DeLorenzo
New submission from Alex DeLorenzo : According to the documentation, asyncio.as_completed() takes a positional argument, aws, as an iterable of awaitables[1]: asyncio.as_completed(aws, *, loop=None, timeout=None) Run awaitable objects in the aws iterable concurrently. As seen

[issue34363] dataclasses.asdict() mishandles dataclass instance attributes that are instances of subclassed typing.NamedTuple

2018-08-08 Thread Alex DeLorenzo
New submission from Alex DeLorenzo : Example: from typing import NamedTuple from dataclasses import dataclass, asdict class NamedTupleAttribute(NamedTuple): example: bool = True @dataclass class Data: attr1: bool attr2: NamedTupleAttribute data = Data(True, NamedTupleAttribute