py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT.
One thing is wanting to do 1 / 2 and get something else but 0, and quite
another - doing rocket science ;-).
diff --git a/py/runtime.c b/py/runtime.c
index d57bb68..b539984 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -426,6 +426,7 @@
} else {
return res;
}
+#if MICROPY_PY_BUILTINS_COMPLEX
} else if (MP_OBJ_IS_TYPE(rhs, &mp_type_complex)) {
mp_obj_t res = mp_obj_complex_binary_op(op, lhs_val, 0, rhs);
if (res == MP_OBJ_NULL) {
@@ -434,6 +435,7 @@
return res;
}
#endif
+#endif
}
}