@@ -948,7 +948,7 @@ void compile_funcdef_param(compiler_t *comp, mp_parse_node_t pn) {
948948 EMIT_ARG (build_map , 0 );
949949 }
950950#endif
951- EMIT_ARG (load_const_id , MP_PARSE_NODE_LEAF_ARG (pn_id ));
951+ EMIT_ARG (load_const_str , MP_PARSE_NODE_LEAF_ARG (pn_id ), false );
952952 compile_node (comp , pn_equal );
953953#if !MICROPY_EMIT_CPYTHON
954954 // in Micro Python we put the default dict parameters into a dictionary using the bytecode
@@ -1033,7 +1033,7 @@ qstr compile_classdef_helper(compiler_t *comp, mp_parse_node_struct_t *pns, uint
10331033 close_over_variables_etc (comp , cscope , 0 , 0 );
10341034
10351035 // get its name
1036- EMIT_ARG (load_const_id , cscope -> simple_name );
1036+ EMIT_ARG (load_const_str , cscope -> simple_name , false );
10371037
10381038 // nodes[1] has parent classes, if any
10391039 // empty parenthesis (eg class C():) gets here as an empty PN_classdef_2 and needs special handling
@@ -2352,7 +2352,7 @@ STATIC void compile_trailer_paren_helper(compiler_t *comp, mp_parse_node_t pn_ar
23522352 compile_syntax_error (comp , (mp_parse_node_t )pns_arg , "LHS of keyword arg must be an id" );
23532353 return ;
23542354 }
2355- EMIT_ARG (load_const_id , MP_PARSE_NODE_LEAF_ARG (pns_arg -> nodes [0 ]));
2355+ EMIT_ARG (load_const_str , MP_PARSE_NODE_LEAF_ARG (pns_arg -> nodes [0 ]), false );
23562356 compile_node (comp , pns2 -> nodes [0 ]);
23572357 n_keyword += 1 ;
23582358 } else {
@@ -3087,7 +3087,7 @@ STATIC void compile_scope(compiler_t *comp, scope_t *scope, pass_kind_t pass) {
30873087
30883088 EMIT_ARG (load_id , MP_QSTR___name__ );
30893089 EMIT_ARG (store_id , MP_QSTR___module__ );
3090- EMIT_ARG (load_const_id , MP_PARSE_NODE_LEAF_ARG (pns -> nodes [0 ])); // 0 is class name
3090+ EMIT_ARG (load_const_str , MP_PARSE_NODE_LEAF_ARG (pns -> nodes [0 ]), false ); // 0 is class name
30913091 EMIT_ARG (store_id , MP_QSTR___qualname__ );
30923092
30933093 check_for_doc_string (comp , pns -> nodes [2 ]);
0 commit comments