def to_native_generator(self, obj, typ):
    '\n        Extract the generator structure pointer from a generator *obj*\n        (a _dynfunc.Generator instance).\n        '
    gen_ptr_ty = Type.pointer(self.context.get_data_type(typ))
    value = self.context.get_generator_state(self.builder, obj, gen_ptr_ty)
    return NativeValue(value)
Extract the generator structure pointer from a generator *obj*
(a _dynfunc.Generator instance).
def to_native_generator(self, obj, typ):
    '\n        Extract the generator structure pointer from a generator *obj*\n        (a _dynfunc.Generator instance).\n        '
    gen_ptr_ty = Type.pointer(self.context.get_data_type(typ))
    value = self.context.get_generator_state(self.builder, obj, gen_ptr_ty)
    return NativeValue(value)