Skip to content

Commit 716a82b

Browse files
committed
set the coroutine generator for native generators
1 parent eb4cf7a commit 716a82b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/objgenerator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ STATIC mp_obj_t native_gen_wrap_call(mp_obj_t self_in, size_t n_args, size_t n_k
9090
o->base.type = &mp_type_gen_instance;
9191

9292
// Parse the input arguments and set up the code state
93+
o->coroutine_generator = self->coroutine_generator;
9394
o->pend_exc = mp_const_none;
9495
o->code_state.fun_bc = self_fun;
9596
o->code_state.ip = (const byte *)prelude_offset;

0 commit comments

Comments
 (0)