[Python-checkins] peps: pep-0492: It's a TypeError to pass non-awaitable to 'await'
yury.selivanov
python-checkins at python.org
Thu Apr 23 22:45:03 CEST 2015
https://hg.python.org/peps/rev/f4c7a7617880
changeset: 5797:f4c7a7617880
user: Yury Selivanov <yselivanov at sprymix.com>
date: Thu Apr 23 16:44:59 2015 -0400
summary:
pep-0492: It's a TypeError to pass non-awaitable to 'await'
files:
pep-0492.txt | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/pep-0492.txt b/pep-0492.txt
--- a/pep-0492.txt
+++ b/pep-0492.txt
@@ -157,6 +157,9 @@
It is a ``SyntaxError`` to use ``await`` outside of a coroutine.
+It is a ``TypeError`` to pass anything other than an *awaitable* object
+to an ``await`` expression.
+
Asynchronous Context Managers and "async with"
----------------------------------------------
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list