![](https://secure.gravatar.com/avatar/d67ab5d94c2fed8ab6b727b62dc1b213.jpg?s=120&d=mm&r=g)
March 21, 2021
2:43 a.m.
On Sun, Mar 21, 2021 at 1:30 PM Yury Selivanov <yselivanov.ml@gmail.com> wrote:
That said I wouldn't mind aiter() supporting the two-arguments mode as it could make it easier to convert some sync code bases (that use greenlets, for example) to async. And given that async iteration mirrors the sync iteration protocol pretty closely, I think that aiter() fully mirroring iter() is expected. I do realize that my arguments here are weak, so my vote is +0 to support the two-arguments mode.
I'm -0.5 on two-argument aiter(), mainly because YAGNI. Two-arg iter() might be worth a single bullet point somewhere in a list of "translating blocking code to nonblocking". ChrisA