Issue #24450: Proxy cr_await and gi_yieldfrom in @types.coroutine

This commit is contained in:
Yury Selivanov 2015-07-03 00:35:02 -04:00
parent e13f8f3cab
commit 53e623075d
2 changed files with 9 additions and 2 deletions

View file

@ -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):