aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-07-03 00:35:02 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-07-03 00:35:02 -0400
commit53e623075dbcba2afaffc859c2fae9bff48e9abf (patch)
tree16826cf2473cbd2f1a943ae1c8ef9265b8833ecd /Lib/types.py
parentIssue #24450: Add gi_yieldfrom to generators; cr_await to coroutines. (diff)
downloadcpython-53e623075dbcba2afaffc859c2fae9bff48e9abf.tar.gz
cpython-53e623075dbcba2afaffc859c2fae9bff48e9abf.tar.bz2
cpython-53e623075dbcba2afaffc859c2fae9bff48e9abf.zip
Issue #24450: Proxy cr_await and gi_yieldfrom in @types.coroutine
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 38b453ad197..8c5fc65d273 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -188,9 +188,13 @@ class _GeneratorWrapper:
@property
def gi_running(self):
return self.__wrapped.gi_running
+ @property
+ def gi_yieldfrom(self):
+ return self.__wrapped.gi_yieldfrom
cr_code = gi_code
cr_frame = gi_frame
cr_running = gi_running
+ cr_await = gi_yieldfrom
def __next__(self):
return next(self.__wrapped)
def __iter__(self):