[Python-Dev] PEP 492: async/await in Python; version 5

Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 6 13:07:15 CEST 2015


Terry Reedy wrote:

> What I do not understand is how io events become event loop Event 
> instances.

They don't become Events exactly, but you can register
a callback to be called when a file becomes ready for
reading or writing, see:

http://effbot.org/pyfaq/can-i-have-tk-events-handled-while-waiting-for-i-o.htm

That's probably enough of a hook to be able to get
asyncio-style file I/O working on top of Tkinter.

-- 
Greg


More information about the Python-Dev mailing list