118 Commits (e41b21c01ef0bf23d14a1e6277d7d89d80a9a394)

Author SHA1 Message Date
Damien George 099a9cb575 Remove mp_obj_new_exception_msg_1_arg and _2_arg. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Paul Sokolovsky ac0134d427 Factor out mp_seq_count_obj() and implement tuple.count(). 11 years ago
Paul Sokolovsky 0cd1dc06e6 Factor out mp_seq_index_obj() function to implement .index() on sequences. 11 years ago
Paul Sokolovsky ee4aaf7cdd Implement tuple addition. 11 years ago
Paul Sokolovsky 1a996c48ac Refactor list comparison code to mp_seq_cmp_objs(). 11 years ago
Damien George 7d0bfbedd2 py: Add some qstrs to the global table. 11 years ago
Paul Sokolovsky e5a15cb7a5 mp_obj_new_list(n, items): Copy items only if not-NULL. 11 years ago
Paul Sokolovsky ea2509d92c Fix assert() usage. 11 years ago
Paul Sokolovsky 13cfabd1b2 Implement slicing for lists. 11 years ago
Damien George 9aa2a527b5 py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 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
Paul Sokolovsky ddf1aa9223 list.pop(): Don't allow ->alloc drop to zero, which causes unexpected behavior. 11 years ago
Damien George 55baff4c9b Revamp qstrs: they now include length and hash. 11 years ago
Paul Sokolovsky 439542f70c sequence.c: Start to refactor sequence operations for reuse among types. 11 years ago
Damien George a11ceca807 Change int to uint for n_args in function with variable arguments. 11 years ago
Damien George ebde0b8a09 Tiny optimisation in objlist.c; a new test for inheritance. 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 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 5c76839559 sorted 11 years ago
Paul Sokolovsky 1945e60aeb list: Implement comparison operators. 11 years ago
Paul Sokolovsky c698d266d1 list: Add extend() methods and += operator. 11 years ago
John R. Lenton b8698fca75 unified the bops 11 years ago
Paul Sokolovsky 074d3b5f86 list: Implement list multiplication. 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 dfc0bac086 py: Small big fix to type declarations. 11 years ago
John R. Lenton 9c83ec0eda Merge remote-tracking branch 'upstream/master' into dict_feats 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 a5a01df81d Make list and str method tables static 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
John R. Lenton c553162ebc Fix off-by-one in non-default values of index's 2nd and 3rd arguments. 11 years ago
Paul Sokolovsky 860ffb0a43 Convert many object types structs to use C99 tagged initializer syntax. 11 years ago
Damien George f0691f4ed5 Fix qstr in objlist.c; add more tests for list.index. 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
John R. Lenton 6e1e98f864 Implements list.reverse; fixes issue #66 11 years ago
John R. Lenton 49fb6e53b3 Implements list.remove (in terms of list.index and list.pop). 11 years ago
John R. Lenton 45a8744617 Implements list.insert. Fixes issue #61. 11 years ago
John R. Lenton 5d4a821339 Implements list.index. Fixes issue #57. 11 years ago
John R. Lenton e241e8c169 Implemented list.count 11 years ago
John R. Lenton 26c211648b Implemented list.copy. Fixes issue #54. 11 years ago
John R. Lenton 069ded9514 Added list.clear. Fixes issue #53. 11 years ago
John R. Lenton 25f417c08c Worked on list.pop: 11 years ago
John R. Lenton 9bc56d933f Changed to use memcpy. 11 years ago
John R. Lenton aeb16c36b0 Add a bit of whitespace. 11 years ago