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:
@@ -39,7 +39,7 @@ STATIC bool module_store_attr(mp_obj_t self_in, qstr attr, mp_obj_t value) {
|
||||
|
||||
const mp_obj_type_t module_type = {
|
||||
{ &mp_const_type },
|
||||
"module",
|
||||
.name = MP_QSTR_module,
|
||||
.print = module_print,
|
||||
.load_attr = module_load_attr,
|
||||
.store_attr = module_store_attr,
|
||||
|
||||
Reference in New Issue
Block a user