40 Commits (0a8458c353b60420f17050d819912df9b168d0cb)

Author SHA1 Message Date
Damien George 0c36da0b59 Implement ROMable modules. Add math module. 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Paul Sokolovsky 520e2f58a5 Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 11 years ago
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
Damien George 4acb2452b3 py: Add very basic implementation of dir() builtin. 11 years ago
Damien George 330cf6d04a Change id to return signed integer. 11 years ago
xbe 0ebf8534ab Implement and add tests for the id() builtin function. 11 years ago
Damien George 5fa93b6755 Second stage of qstr revamp: uPy str object can be qstr or not. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky a80ff04fe7 Add dummy bytes() constructor. 11 years ago
Damien George a11ceca807 Change int to uint for n_args in function with variable arguments. 11 years ago
Damien George 20006dbba9 Make VM stack grow upwards, and so no reversed args arrays. 11 years ago
Damien George e2fb2baaa4 Implement repr. 11 years ago
Paul Sokolovsky 36c4499d36 Implement str() and repr() builtin functions. 11 years ago
Paul Sokolovsky 76d982ef34 type->print(): Distinguish str() and repr() variety by passing extra param. 11 years ago
Damien George 0f59203e37 Tidy up. 11 years ago
John R. Lenton 88cb1e60e0 Made sorted() raise an exception instead of aborting when given no arguments; moved around some things in objfun.c as a consequence 11 years ago
John R. Lenton 2ded68db77 Cleaned up sorted() as per Damien's suggestions. 11 years ago
Damien George 2300537c79 Cleanup built-ins, and fix some compiler warnings/errors. 11 years ago
John R. Lenton 5c76839559 sorted 11 years ago
John R. Lenton 4bee76ebca Added dict.fromkeys. Are we done with dict and #99 yet? I do think we are. 11 years ago
Damien George 062478e66d Improved type/class/instance code; mp_obj_type_t now has load_attr, store_attr. 11 years ago
Damien George 93a9b5b64d py: Proper framework for built-in 'type'. 11 years ago
Damien George 6c73ca1e75 py: add variable argument exception constructor function. 11 years ago
Damien George 38a2da68c2 py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t. 11 years ago
Damien George b97669ab94 py: Improve __build_class__. 11 years ago
Damien George 71c5181a8d Convert Python types to proper Python type hierarchy. 11 years ago
Damien George eb7bfcb286 Split qstr into pools, and put initial pool in ROM. 11 years ago
Damien George 66028ab6dc Basic implementation of import. 11 years ago
Damien George 40563d56bd py: Add framework for built-in "type()" function. 11 years ago
Damien George 209d1b1835 py: add int() and float() built-ins, partially implemented. 11 years ago
Damien dae7eb7226 py: add dict length function, and fix rt_store_set. 11 years ago
Damien 732407f1bf Change memory allocation API to require size for free and realloc. 11 years ago
Damien d9d6201b52 py: simplify __next__ method for generators. 11 years ago
Damien d99b05282d Change object representation from 1 big union to individual structs. 11 years ago
Damien a3dcd9e80c py: add more Python built-in functions. 11 years ago
Damien 660365e14c py: split runtime into map, obj, builtin. 11 years ago