Fwd: Replacing Infinite while Loops with an Iterator: async edition

On Jun 23, 2018, at 21:11, Nathaniel Smith <n...@pobox.com> wrote:
Yes, exactly (thanks, Nathaniel). Wouldn't that be a useful built-in? (Greg, I too would be surprised if this were the first time this idea has been raised, but I looked before posting and couldn’t immediately find prior discussion.)

On Sun, Jun 24, 2018 at 3:34 PM Jelle Zijlstra <jelle.zijlstra@gmail.com> wrote:
There is an open issue for this: https://bugs.python.org/issue31861. It proposes adding aiter() and anext() as builtins.
Oh, great to see that, thanks! I'll follow along on that issue, and maybe even contribute a PR if I can.

On Sunday, June 24, 2018 at 7:48:34 PM UTC-4, Greg Ewing wrote:
Just submitted a PR: https://github.com/python/cpython/pull/8895

On Sun, Jun 24, 2018 at 3:34 PM Jelle Zijlstra <jelle.zijlstra@gmail.com> wrote:
There is an open issue for this: https://bugs.python.org/issue31861. It proposes adding aiter() and anext() as builtins.
Oh, great to see that, thanks! I'll follow along on that issue, and maybe even contribute a PR if I can.

On Sunday, June 24, 2018 at 7:48:34 PM UTC-4, Greg Ewing wrote:
Just submitted a PR: https://github.com/python/cpython/pull/8895
participants (3)
-
Greg Ewing
-
jab@math.brown.edu
-
Jelle Zijlstra