Implement "from module import *" construct.

This commit is contained in:
Paul Sokolovsky
2014-02-14 00:22:06 +02:00
parent a8d404e0e1
commit da1ce93da8
4 changed files with 20 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ mp_obj_t rt_getiter(mp_obj_t o);
mp_obj_t rt_iternext(mp_obj_t o);
mp_obj_t rt_import_name(qstr name, mp_obj_t fromlist, mp_obj_t level);
mp_obj_t rt_import_from(mp_obj_t module, qstr name);
void rt_import_all(mp_obj_t module);
struct _mp_map_t;
struct _mp_map_t *rt_locals_get(void);