Skip to content

Commit 5d96afc

Browse files
committed
i do not know if this is needed but this is not the vm i use anymore
1 parent bf849ff commit 5d96afc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

py/compile.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,11 @@ STATIC void compile_atom_expr_await(compiler_t *comp, mp_parse_node_struct_t *pn
26552655
compile_require_async_context(comp, pns);
26562656
compile_atom_expr_normal(comp, pns);
26572657

2658-
compile_await_object_method(comp, MP_QSTR___await__);
2658+
2659+
EMIT_ARG(load_method, MP_QSTR___await__, false);
2660+
EMIT_ARG(call_method, 0, 0, 0);
2661+
// EMIT_ARG(load_const_tok, MP_TOKEN_KW_NONE); // don't yield anything from an awaitable; only return the final result.
2662+
// EMIT_ARG(yield, MP_EMIT_YIELD_FROM);
26592663
}
26602664
#endif
26612665

0 commit comments

Comments
 (0)