summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/emitglue.c')
-rw-r--r--py/emitglue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index a89ef6766a..732e4b5500 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -120,7 +120,9 @@ mp_obj_t mp_make_function_from_raw_code(mp_raw_code_t *rc, mp_obj_t def_args, mp
assert(def_args == MP_OBJ_NULL || MP_OBJ_IS_TYPE(def_args, &mp_type_tuple));
// TODO implement default kw args
- assert(def_kw_args == MP_OBJ_NULL);
+ if (def_kw_args != MP_OBJ_NULL) {
+ mp_not_implemented("Default values for kw-only args");
+ }
// make the function, depending on the raw code kind
mp_obj_t fun;