Commit 4e836fb4 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

mp_obj_equal(): Instead of assert(), throw NotImplementedError.

With a nice traceback, helps debugging much better.
parent 0a25aba0
......@@ -132,9 +132,9 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2) {
return r == mp_const_true ? true : false;
// TODO: Debugging helper
printf("Equality for '%s' and '%s' types not yet implemented\n", mp_obj_get_type_str(o1), mp_obj_get_type_str(o2));
"Equality for '%s' and '%s' types not yet implemented", mp_obj_get_type_str(o1), mp_obj_get_type_str(o2)));
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment