152 Commits (cf6845b1cf4680bb2eade175aaab00428bedf8ba)

Author SHA1 Message Date
Paul Sokolovsky de4b9329f9 py: Refactor slice helpers, preparing to support arbitrary slicing. 11 years ago
Paul Sokolovsky 2705f4c782 objlist: Implement growing slice assignment. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Damien George ee7a880d6e py: Use mp_arg_check_num in more places. 11 years ago
Paul Sokolovsky 3f8d34ca83 objlist: Support list slice deletion. 11 years ago
Paul Sokolovsky 94d8246272 objlist: Implement non-growing slice assignment. 11 years ago
Paul Sokolovsky d915a52eb6 py: Fix prefix on few sequence helpers, was incorrectly "mp_". 11 years ago
Damien George d0a5bf34f7 py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Paul Sokolovsky a224067846 py: Clear allocated, but unused memory in containers. 11 years ago
Paul Sokolovsky 7ce6a8fe46 objlist: We no longer need to assert on mem alloc results. 11 years ago
Paul Sokolovsky 48bf6b3bd0 objlist: Use static small int constructor. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 729f7b42d6 py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 11 years ago
Paul Sokolovsky 18bef25a0c objlist: Add support for statically allocated lists. 11 years ago
Paul Sokolovsky aa6666c45e objlist: Make .extend accept arbitrary iterable. 11 years ago
Damien George 8f19317540 py: Remove useless implementations of NOT_EQUAL in binary_op's. 11 years ago
Damien George f4c9b33abf py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. 11 years ago
Damien George 495d781a36 py: implement UNPACK_EX byte code (for: a, *b, c = d) 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George 8270e3853d py: More robust int conversion and overflow checking. 11 years ago
Paul Sokolovsky f7eaf605c0 py: Fix "TypeError: 'iterator' object is not iterable", doh. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago
Damien George 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago
Damien George 66eaf84b8c py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
xbe 9e1e8cd642 Implement str.count and add tests for it. 11 years ago
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
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