mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
mp_obj_module_get_globals() returns a mp_obj_dict_t*, and type->locals_dict is a mp_obj_dict_t*, so access the map entry of the dict directly instead of needing to cast this mp_obj_dict_t* up to an object and then calling the mp_obj_dict_get_map() helper function.
5.8 KiB
5.8 KiB