[New-bugs-announce] [issue22412] Towards an asyncio-enabled command line
Martin Teichmann
report at bugs.python.org
Sun Sep 14 23:15:35 CEST 2014
New submission from Martin Teichmann:
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)
----------
components: Interpreter Core, asyncio
files: patch
messages: 226887
nosy: Martin.Teichmann, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: Towards an asyncio-enabled command line
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file36617/patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22412>
_______________________________________
More information about the New-bugs-announce
mailing list