summaryrefslogtreecommitdiff
path: root/py/sequence.c
AgeCommit message (Collapse)Author
2014-04-18sequence: Further simplify sequence comparison.Paul Sokolovsky
2014-04-18sequence: Fix glaring bug in sequence comparison.Paul Sokolovsky
2014-04-05py: Change nlr_jump to nlr_raise, to aid in debugging.Damien George
This does not affect code size or performance when debugging turned off. To address issue #420.
2014-03-30Merge map.h into obj.h.Damien George
Pretty much everyone needs to include map.h, since it's such an integral part of the Micro Python object implementation. Thus, the definitions are now in obj.h instead. map.h is removed.
2014-03-30Rename rt_* to mp_*.Damien George
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
2014-03-17py: Clean up includes.xbe
Remove unnecessary includes. Add includes that improve portability.
2014-03-12Implement str.count and add tests for it.xbe
Also modify mp_get_index to accept: 1. Indices that are or evaluate to a boolean. 2. Slice indices. Add tests for these two cases.
2014-02-15Implement proper exception type hierarchy.Damien George
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
2014-02-10Fix some int casting that failed on 64 bit architecture.Damien George
2014-02-10Factor out mp_seq_count_obj() and implement tuple.count().Paul Sokolovsky
2014-02-10Implement tuple.index().Paul Sokolovsky
2014-02-10Factor out mp_seq_index_obj() function to implement .index() on sequences.Paul Sokolovsky
2014-02-08Refactor list comparison code to mp_seq_cmp_objs().Paul Sokolovsky
2014-02-02Implement str/bytes rich comparisons.Paul Sokolovsky
2014-02-02Factor out m_seq_get_fast_slice_indexes() fucntions as sequence helper.Paul Sokolovsky
Takes slice object and sequence length and computes subsequence indexes for case of slice step=1.
2014-01-21Merge branch 'master' of github.com:micropython/micropythonDamien George
Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
2014-01-21sequence.c: Start to refactor sequence operations for reuse among types.Paul Sokolovsky