29 #if MICROPY_PY_ATTRTUPLE || MICROPY_PY_COLLECTIONS 32 #if !MICROPY_PY_COLLECTIONS 37 for (
size_t i = 0; i < o->
len; i++) {
49 #if MICROPY_PY_ATTRTUPLE 55 mp_obj_attrtuple_print_helper(print, fields, o);
62 size_t len =
self->len;
64 for (
size_t i = 0; i < len; i++) {
65 if (fields[i] ==
attr) {
66 dest[0] =
self->items[i];
77 for (
size_t i = 0; i < n; i++) {
78 o->
items[i] = items[i];
86 .
name = MP_QSTR_tuple,
87 .print = mp_obj_attrtuple_print,
90 .attr = mp_obj_attrtuple_attr,
95 #endif // MICROPY_PY_ATTRTUPLE
mp_obj_t mp_obj_tuple_subscr(mp_obj_t self_in, mp_obj_t index, mp_obj_t value)
STATIC const uint8_t attr[]
mp_obj_t mp_obj_tuple_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs)
int mp_print_str(const mp_print_t *print, const char *str)
#define MP_OBJ_FROM_PTR(p)
mp_obj_t mp_obj_new_attrtuple(const qstr *fields, size_t n, const mp_obj_t *items)
#define m_new_obj_var(obj_type, var_type, var_num)
mp_obj_t mp_obj_tuple_getiter(mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf)
void mp_obj_print_helper(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind)
const mp_obj_type_t mp_type_attrtuple
const mp_obj_type_t mp_type_type
int mp_printf(const mp_print_t *print, const char *fmt,...)
mp_obj_t mp_obj_tuple_unary_op(mp_unary_op_t op, mp_obj_t self_in)