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:
@@ -8,6 +8,9 @@ if platform.python_version_tuple()[0] == '2':
|
||||
elif platform.python_version_tuple()[0] == '3':
|
||||
from html.entities import codepoint2name
|
||||
|
||||
# add some custom names to map characters that aren't in HTML
|
||||
codepoint2name[ord('.')] = 'dot'
|
||||
|
||||
# this must match the equivalent function in qstr.c
|
||||
def compute_hash(qstr):
|
||||
hash = 0
|
||||
|
||||
Reference in New Issue
Block a user