Change mp_obj_type_t.name from const char * to qstr.
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
This commit is contained in:
@@ -41,7 +41,7 @@ mp_obj_t bound_meth_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_
|
||||
|
||||
const mp_obj_type_t bound_meth_type = {
|
||||
{ &mp_const_type },
|
||||
"bound_method",
|
||||
.name = MP_QSTR_bound_method,
|
||||
.call = bound_meth_call,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user