Message226887
This patch is supposed to facilitate using the asyncio
package on the command line. It contains two things:
First, a coroutine version of builtin.input, so that
it can be called while a asyncio event loop is running.
Secondly, it adds a new flag to builtin.compile which
allows to use the yield and yield from statements on
the module level, making compile always return a generator.
The latter part will enable us to run commands like the
following on the command line:
>>> from asyncio import sleep
>>> yield from sleep(3)
(This has been discussed on python-ideas,
https://mail.python.org/pipermail/python-ideas/2014-September/029293.html) |
|
Date |
User |
Action |
Args |
2014-09-14 21:15:35 | Martin.Teichmann | set | recipients:
+ Martin.Teichmann, gvanrossum, vstinner, yselivanov |
2014-09-14 21:15:35 | Martin.Teichmann | set | messageid: <1410729335.06.0.363715018256.issue22412@psf.upfronthosting.co.za> |
2014-09-14 21:15:34 | Martin.Teichmann | link | issue22412 messages |
2014-09-14 21:15:34 | Martin.Teichmann | create | |
|