mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
objgenerator: Implement return with value and .close() method.
Return with value gets converted to StopIteration(value). Implementation keeps optimizing against creating of possibly unneeded exception objects, so there're considerable refactoring to implement these features.
This commit is contained in:
1
py/objgenerator.h
Normal file
1
py/objgenerator.h
Normal file
@@ -0,0 +1 @@
|
||||
mp_obj_t mp_obj_gen_resume(mp_obj_t self_in, mp_obj_t send_val, mp_obj_t throw_val, mp_vm_return_kind_t *ret_kind);
|
||||
Reference in New Issue
Block a user