mirror of
https://github.com/micropython/micropython.git
synced 2025-09-03 08:20:28 +02:00
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:
@@ -28,7 +28,7 @@ STATIC mp_obj_t enumerate_make_new(mp_obj_t type_in, uint n_args, uint n_kw, con
|
||||
|
||||
const mp_obj_type_t enumerate_type = {
|
||||
{ &mp_const_type },
|
||||
"enumerate",
|
||||
.name = MP_QSTR_enumerate,
|
||||
.make_new = enumerate_make_new,
|
||||
.iternext = enumerate_iternext,
|
||||
.getiter = mp_identity,
|
||||
|
Reference in New Issue
Block a user