summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtin.c
Commit message (Collapse)AuthorAge
* Added dict.fromkeys. Are we done with dict and #99 yet? I do think we are.John R. Lenton2014-01-10
|
* Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr.Damien George2014-01-09
| | | | | Creating of classes (types) and instances is much more like CPython now. You can use "type('name', (), {...})" to create classes.
* py: Proper framework for built-in 'type'.Damien George2014-01-08
|
* py: add variable argument exception constructor function.Damien George2014-01-08
| | | | Addresses issue #104.
* py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t.Damien George2014-01-08
|
* py: Improve __build_class__.Damien George2014-01-08
|
* Convert Python types to proper Python type hierarchy.Damien George2014-01-04
| | | | Now much more inline with how CPython does types.
* Split qstr into pools, and put initial pool in ROM.Damien George2014-01-04
| | | | | | | | | | | | | | | | Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
* Basic implementation of import.Damien George2014-01-03
| | | | | | import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
* py: Add framework for built-in "type()" function.Damien George2014-01-02
|
* py: add int() and float() built-ins, partially implemented.Damien George2014-01-01
|
* py: add dict length function, and fix rt_store_set.Damien2013-12-29
|
* Change memory allocation API to require size for free and realloc.Damien2013-12-29
|
* py: simplify __next__ method for generators.Damien2013-12-21
|
* Change object representation from 1 big union to individual structs.Damien2013-12-21
| | | | | | | | | | 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).
* py: add more Python built-in functions.Damien2013-12-17
|
* py: split runtime into map, obj, builtin.Damien2013-12-17