This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Martin.Teichmann
Recipients Martin.Teichmann, gvanrossum, vstinner, yselivanov
Date 2014-09-14.21:15:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1410729335.06.0.363715018256.issue22412@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2014-09-14 21:15:35Martin.Teichmannsetrecipients: + Martin.Teichmann, gvanrossum, vstinner, yselivanov
2014-09-14 21:15:35Martin.Teichmannsetmessageid: <1410729335.06.0.363715018256.issue22412@psf.upfronthosting.co.za>
2014-09-14 21:15:34Martin.Teichmannlinkissue22412 messages
2014-09-14 21:15:34Martin.Teichmanncreate