diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-09 20:57:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-09 20:57:50 +0000 |
commit | 062478e66d03cc59ed73484a3032ef5f08db12a4 (patch) | |
tree | 6d3beb59ade6fe3d1ab7a5f05ff876e63062717f /py/map.h | |
parent | d944a66ead38b15b5a3c7a4ae8b054451fd5c077 (diff) | |
download | micropython-062478e66d03cc59ed73484a3032ef5f08db12a4.tar.gz micropython-062478e66d03cc59ed73484a3032ef5f08db12a4.zip |
Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.
Creating of classes (types) and instances is much more like CPython now.
You can use "type('name', (), {...})" to create classes.
Diffstat (limited to 'py/map.h')
-rw-r--r-- | py/map.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ typedef struct _mp_set_t { mp_obj_t *table; } mp_set_t; -typedef enum { +typedef enum _mp_map_lookup_kind_t { MP_MAP_LOOKUP, MP_MAP_LOOKUP_ADD_IF_NOT_FOUND, MP_MAP_LOOKUP_REMOVE_IF_FOUND, |