mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 10:20:52 +02:00
For generating functions there is no need to wrap the bytecode function in a generator wrapper instance. Instead the type of the bytecode function can be changed to mp_type_gen_wrap. This reduces code size and saves a block of GC heap RAM for each generator.