The Incredible Growth of Python (stackoverflow.blog)
Chris Angelico
rosuav at gmail.com
Sun Sep 10 06:01:37 EDT 2017
On Sun, Sep 10, 2017 at 7:45 PM, Skip Montanaro
<skip.montanaro at gmail.com> wrote:
>> * asyncio with its a-dialect
>
> What is a/the "a-dialect"?
Want to make something iterable? Define __iter__. Want to make it
async-iterable (with "async for")? Define __aiter__. It's a bit clunky
if you want the same object to be iterable both ways, but I don't know
of any real-world situations where that's the case.
ChrisA
More information about the Python-list
mailing list