aboutsummaryrefslogtreecommitdiff
path: root/unix
diff options
context:
space:
mode:
authorDamien George2014-04-05 22:36:42 +0100
committerDamien George2014-04-05 22:36:42 +0100
commit7efc5b3f346869cd4177760e6a6b2bb863b425da (patch)
tree04fbe840f20ab84bee79d28882601812279c8718 /unix
parent8b0535e23fb1c646103a060a4ae17e9ee6d5e887 (diff)
py: Make globals and locals proper dictionary objects.
Finishes addressing issue #424. In the end this was a very neat refactor that now makes things a lot more consistent across the py code base. It allowed some simplifications in certain places, now that everything is a dict object. Also converted builtins tables to dictionaries. This will be useful when we need to turn builtins into a proper module.
Diffstat (limited to 'unix')
-rw-r--r--unix/mpconfigport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index b8ee020f1..3798f88b5 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -34,4 +34,4 @@ typedef const void *machine_const_ptr_t; // must be of pointer size
struct _mp_obj_fun_native_t;
extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
#define MICROPY_EXTRA_BUILTINS \
- { MP_QSTR_open, (mp_obj_t)&mp_builtin_open_obj },
+ { MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },