[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The Incredible Growth of Python (stackoverflow.blog)

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.