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:
@@ -52,7 +52,7 @@ STATIC mp_obj_t zip_iternext(mp_obj_t self_in) {
|
||||
|
||||
const mp_obj_type_t zip_type = {
|
||||
{ &mp_const_type },
|
||||
"zip",
|
||||
.name = MP_QSTR_zip,
|
||||
.make_new = zip_make_new,
|
||||
.getiter = zip_getiter,
|
||||
.iternext = zip_iternext,
|
||||
|
||||
Reference in New Issue
Block a user