File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,15 @@ const mp_obj_dict_t mp_builtin_object_dict_obj = {
160
160
},
161
161
};
162
162
163
+ STATIC const mp_obj_module_t mp_module_builtins = {
164
+ .base = { & mp_type_module },
165
+ .name = MP_QSTR_builtins ,
166
+ .globals = (mp_obj_dict_t * )& mp_builtin_object_dict_obj ,
167
+ };
168
+
163
169
STATIC const mp_map_elem_t mp_builtin_module_table [] = {
164
170
{ MP_OBJ_NEW_QSTR (MP_QSTR___main__ ), (mp_obj_t )& mp_module___main__ },
171
+ { MP_OBJ_NEW_QSTR (MP_QSTR_builtins ), (mp_obj_t )& mp_module_builtins },
165
172
{ MP_OBJ_NEW_QSTR (MP_QSTR_micropython ), (mp_obj_t )& mp_module_micropython },
166
173
167
174
#if MICROPY_PY_ARRAY
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ Q(align)
86
86
Q (data )
87
87
#endif
88
88
89
+ Q (builtins )
90
+
89
91
Q (Ellipsis )
90
92
Q (StopIteration )
91
93
You can’t perform that action at this time.
0 commit comments