aboutsummaryrefslogtreecommitdiff
path: root/py/map.h
AgeCommit message (Collapse)Author
2014-02-26py: Take out bitfield entries from their own structure.Damien George
Don't need to wrap bitfields in their own struct. Compiler does the correct thing without it.
2014-02-08py: Allow mp_map_t to be initialised by a fixed-size, const table.Damien George
This allows keyword maps to be created directly from stack data.
2014-01-25Add mp_map_deinit() & mp_map_free() to finalize maps.Paul Sokolovsky
mp_map_deinit() finalizes static map, mp_map_free() - dynamic.
2014-01-12Implemented set.removeJohn R. Lenton
2014-01-12Implemented set.discardJohn R. Lenton
2014-01-12Implemented set.clearJohn R. Lenton
2014-01-09Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George
Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
2014-01-08py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.Damien George
2014-01-07implemented dict.popJohn R. Lenton
2014-01-07Added dict.clear.John R. Lenton
Added 0 to the list of primes. Funky primes, these.
2014-01-03Basic implementation of import.Damien George
import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-12-17py: split runtime into map, obj, builtin.Damien