33 Commits (6fc765c928460ad8a116f8dd1b8b1412fb997829)

Author SHA1 Message Date
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Damien George 9aa2a527b5 py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 11 years ago
Damien George 09a0c64bce py: Improve __bool__ and __len__ dispatch; add slots for them. 11 years ago
Paul Sokolovsky c1d9bbc345 Implement __bool__ and __len__ via unary_op virtual method for all types. 11 years ago
Damien George 4e8dc8c41b py: Add unary op not for NoneType, bool, tuple, list, dict; fix for int. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 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
Paul Sokolovsky 76d982ef34 type->print(): Distinguish str() and repr() variety by passing extra param. 11 years ago
Damien George eae16445d5 py: Implement staticmethod and classmethod (internally). 11 years ago
John R. Lenton c1bef21920 Implemented support for `in` and `not in` operators. 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
John R. Lenton 9ec3a87189 dict views now, refactoring later. 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 38a2da68c2 py: Stuff qstr in object pointer; keys for mp_map_t are now always mp_obj_t. 11 years ago
John R. Lenton baa665406f Moved dict methods out to a mp_method_t. 11 years ago
John R. Lenton 88f3043e0a added a first pass of dict.update 11 years ago
John R. Lenton be8fe5be2e Added dict.setdefault 11 years ago
John R. Lenton f77dce8a5d Added dict.popitem 11 years ago
John R. Lenton 0fcbaa442f implemented dict.pop 11 years ago
John R. Lenton cd0887352d Added dict.get. 11 years ago
John R. Lenton d90b19eca5 Added dict.copy 11 years ago
John R. Lenton 7d21d516d2 make dict_len use the map's used count 11 years ago
John R. Lenton 4ce6ceadca Added dict.clear. 11 years ago
John R. Lenton a41fe31322 Added dict iterator. 11 years ago
John R. Lenton 3391e19068 A bit of stylistic cleanup (chose the wrong side during conflict resolution). 11 years ago
John R. Lenton c06763a020 This implements a better (more python-conformant) list.sort. 11 years ago
ian-v 5fd8fd2c16 Revert MP_BOOL, etc. and use <stdbool.h> instead 11 years ago
ian-v 7a16fadbf8 Co-exist with C++ (issue #85) 11 years ago
Paul Sokolovsky 860ffb0a43 Convert many object types structs to use C99 tagged initializer syntax. 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 dae7eb7226 py: add dict length function, and fix rt_store_set. 11 years ago
Damien d99b05282d Change object representation from 1 big union to individual structs. 11 years ago