From: Yury Selivanov Date: Fri, 3 Jul 2015 04:41:16 +0000 (-0400) Subject: Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper X-Git-Tag: v3.5.0b3~13^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09e60588389710232030a39b1ae9ba99542ba602;p=python Issue #24450: Proxy gi_yieldfrom & cr_await in asyncio.CoroWrapper --- diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index a70eb1dd91..15475f23b4 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -144,6 +144,14 @@ class CoroWrapper: __await__ = __iter__ # make compatible with 'await' expression + @property + def gi_yieldfrom(self): + return self.gen.gi_yieldfrom + + @property + def cr_await(self): + return self.gen.cr_await + @property def cr_running(self): return self.gen.cr_running