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).
This commit is contained in:
Paul Sokolovsky
2015-12-05 00:09:10 +02:00
parent 5ae3ddcc9a
commit 1a1d11fa32
5 changed files with 21 additions and 8 deletions

View File

@@ -474,6 +474,9 @@ Q(implementation)
#if MICROPY_PY_SYS_MAXSIZE
Q(maxsize)
#endif
#if MICROPY_PY_SYS_MODULES
Q(modules)
#endif
#if MICROPY_PY_SYS_EXC_INFO
Q(exc_info)
#endif