On 30 April 2015 at 09:58, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > Ethan Furman wrote: >> >> Having gone through the PEP again, I am still no closer to understanding >> what happens here: >> >> data = await reader.read(8192) >> >> What does the flow of control look like at the interpreter level? > > > Are you sure you *really* want to know? For the sake > of sanity, I recommend ignoring the actual control > flow and pretending that it's just like > > data = reader.read(8192) > > with the reader.read() method somehow able to be > magically suspended.
Well, if I don't know, I get confused as to where I invoke the event loop, how my non-async code runs alongside this etc. Paul _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com