diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-05 00:09:10 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-12-05 00:13:29 +0200 |
commit | 1a1d11fa32ba043d22995d28cbc039cfa5f3cc46 (patch) | |
tree | ebe82caf230957315c45e26f4873f85cbe0b0d19 /py/mpstate.h | |
parent | 5ae3ddcc9a8fab9c845d98d58b26b6d258809475 (diff) | |
download | micropython-1a1d11fa32ba043d22995d28cbc039cfa5f3cc46.tar.gz micropython-1a1d11fa32ba043d22995d28cbc039cfa5f3cc46.zip |
py/modsys: Implement sys.modules.
This for example will allow people to reload modules which didn't load
successfully (e.g. due to syntax error).
Diffstat (limited to 'py/mpstate.h')
-rw-r--r-- | py/mpstate.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/py/mpstate.h b/py/mpstate.h index d0baad2b78..e9e38606e7 100644 --- a/py/mpstate.h +++ b/py/mpstate.h @@ -100,9 +100,8 @@ typedef struct _mp_state_vm_t { #endif #endif - // map with loaded modules - // TODO: expose as sys.modules - mp_map_t mp_loaded_modules_map; + // dictionary with loaded modules (may be exposed as sys.modules) + mp_obj_dict_t mp_loaded_modules_dict; // pending exception object (MP_OBJ_NULL if not pending) volatile mp_obj_t mp_pending_exception; |