[Python-checkins] peps: pep-0492: AsyncFuntionDef ast node; 100% backwards compatible
yury.selivanov
python-checkins at python.org
Sun Apr 19 20:15:52 CEST 2015
https://hg.python.org/peps/rev/d6718ddbc92b
changeset: 5774:d6718ddbc92b
user: Yury Selivanov <yselivanov at sprymix.com>
date: Sun Apr 19 14:15:49 2015 -0400
summary:
pep-0492: AsyncFuntionDef ast node; 100% backwards compatible
files:
pep-0492.txt | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -567,10 +567,7 @@
Backwards Compatibility
-----------------------
-The only backwards incompatible change is an extra argument ``is_async`` to
-``FunctionDef`` AST node. But since it is a documented fact that the structure
-of AST nodes is an implementation detail and subject to change, this should not
-be considered a serious issue.
+This proposal preserves 100% backwards compatibility.
Grammar Updates
@@ -922,8 +919,7 @@
protocol with ``__aiter__``, ``__aexit__`` and new built-in exception
``StopAsyncIteration``.
-5. New AST nodes: ``AsyncFor``, ``AsyncWith``, ``Await``; ``FunctionDef`` AST
- node got a new argument ``is_async``.
+5. New AST nodes: ``AsyncFunctionDef``, ``AsyncFor``, ``AsyncWith``, ``Await``.
6. New functions: ``sys.set_coroutine_wrapper(callback)`` and
``types.async_def(gen)``.
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list