@@ -20,7 +20,7 @@ typedef struct _mp_obj_dict_t {
2020static mp_obj_t mp_obj_new_dict_iterator (mp_obj_dict_t * dict , int cur );
2121static mp_map_elem_t * dict_it_iternext_elem (mp_obj_t self_in );
2222
23- static void dict_print (void (* print )(void * env , const char * fmt , ...), void * env , mp_obj_t self_in ) {
23+ static void dict_print (void (* print )(void * env , const char * fmt , ...), void * env , mp_obj_t self_in , mp_print_kind_t kind ) {
2424 mp_obj_dict_t * self = self_in ;
2525 bool first = true;
2626 print (env , "{" );
@@ -31,9 +31,9 @@ static void dict_print(void (*print)(void *env, const char *fmt, ...), void *env
3131 print (env , ", " );
3232 }
3333 first = false;
34- mp_obj_print_helper (print , env , next -> key );
34+ mp_obj_print_helper (print , env , next -> key , PRINT_REPR );
3535 print (env , ": " );
36- mp_obj_print_helper (print , env , next -> value );
36+ mp_obj_print_helper (print , env , next -> value , PRINT_REPR );
3737 }
3838 print (env , "}" );
3939}
@@ -350,7 +350,7 @@ static mp_obj_t dict_view_getiter(mp_obj_t view_in) {
350350 return o ;
351351}
352352
353- static void dict_view_print (void (* print )(void * env , const char * fmt , ...), void * env , mp_obj_t self_in ) {
353+ static void dict_view_print (void (* print )(void * env , const char * fmt , ...), void * env , mp_obj_t self_in , mp_print_kind_t kind ) {
354354 assert (MP_OBJ_IS_TYPE (self_in , & dict_view_type ));
355355 mp_obj_dict_view_t * self = self_in ;
356356 bool first = true;
@@ -363,7 +363,7 @@ static void dict_view_print(void (*print)(void *env, const char *fmt, ...), void
363363 print (env , ", " );
364364 }
365365 first = false;
366- mp_obj_print_helper (print , env , next );
366+ mp_obj_print_helper (print , env , next , PRINT_REPR );
367367 }
368368 print (env , "])" );
369369}
0 commit comments