diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-10 07:10:55 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-02-10 07:13:32 +0200 |
commit | ac0134d427677438ec07f76f9b28b3f514cebde7 (patch) | |
tree | 6d2b9c21d6cdb6ec43373473a38dac9562fd3830 /py/obj.h | |
parent | 624eff6a8a948c5ffa7c7d17fab69b3739f2e711 (diff) |
Factor out mp_seq_count_obj() and implement tuple.count().
Diffstat (limited to 'py/obj.h')
-rw-r--r-- | py/obj.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -403,3 +403,4 @@ bool m_seq_get_fast_slice_indexes(machine_uint_t len, mp_obj_t slice, machine_ui bool mp_seq_cmp_bytes(int op, const byte *data1, uint len1, const byte *data2, uint len2); bool mp_seq_cmp_objs(int op, const mp_obj_t *items1, uint len1, const mp_obj_t *items2, uint len2); mp_obj_t mp_seq_index_obj(const mp_obj_t *items, uint len, uint n_args, const mp_obj_t *args); +mp_obj_t mp_seq_count_obj(const mp_obj_t *items, uint len, mp_obj_t value); |