On 13/06/23 11:38 am, Chris Angelico wrote:
I think they currently use what's basically a copy of the generator
implementation. It makes sense to make resumable functions that way.

In many ways it does, although things get a bit messy
when it comes to async generators. If I were designing
something from scratch to support both, I would probably
do it a bit differently.

> (Fun fact: Pike looked at what Python was doing, and came up with a
> concept of "continue functions"

And I gather that the "async" and "await" keywords came
from C#. Languages are always stealing from each other. :-)

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/EG5ALWHCYE64J3UBLHAPP4DGE5PHP7GP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to