[Python-checkins] peps: pep-0492: Rename ensure_task() -> ensure_future()
yury.selivanov
python-checkins at python.org
Fri May 1 08:09:12 CEST 2015
https://hg.python.org/peps/rev/5d5b24603765
changeset: 5815:5d5b24603765
user: Yury Selivanov <yselivanov at sprymix.com>
date: Fri May 01 02:09:09 2015 -0400
summary:
pep-0492: Rename ensure_task() -> ensure_future()
files:
pep-0492.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -828,7 +828,7 @@
2. Add ``__await__ = __iter__`` line to ``asyncio.Future`` class.
-3. Add ``ensure_task()`` as an alias for ``async()`` function.
+3. Add ``ensure_future()`` as an alias for ``async()`` function.
Deprecate ``async()`` function.
@@ -848,7 +848,7 @@
There is no use of ``await`` names in CPython.
``async`` is mostly used by asyncio. We are addressing this by
-renaming ``async()`` function to ``ensure_task()`` (see `asyncio`_
+renaming ``async()`` function to ``ensure_future()`` (see `asyncio`_
section for details.)
Another use of ``async`` keyword is in ``Lib/xml/dom/xmlbuilder.py``,
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list