summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-19 14:52:07 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-19 14:52:07 -0800
commit2c7a1b2ad193e25749dd5821a8af95173ae290cb (patch)
tree201a5cca563eaad2e76651add86b8dc4de923c1a /py/obj.h
parentf438b936e0edcbc3eab9af6cc3513db1f01ab17e (diff)
parentd720ab5236015124a13c09175ed674e565414faa (diff)
downloadmicropython-2c7a1b2ad193e25749dd5821a8af95173ae290cb.tar.gz
micropython-2c7a1b2ad193e25749dd5821a8af95173ae290cb.zip
Merge pull request #197 from pfalcon/mod-singletons
Implement modules as singletons Python semantics.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 510108eedb..11ec4afe84 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -356,6 +356,7 @@ extern const mp_obj_type_t gen_instance_type;
// module
extern const mp_obj_type_t module_type;
mp_obj_t mp_obj_new_module(qstr module_name);
+mp_obj_t mp_obj_module_get(qstr module_name);
struct _mp_map_t *mp_obj_module_get_globals(mp_obj_t self_in);
// staticmethod and classmethod types; defined here so we can make const versions