python-on-a-chip online compiler

Dependencies:   mbed TSI

Embed: (wiki syntax)

« Back to documentation index

PmTuple_s Struct Reference

PmTuple_s Struct Reference

Tuple obj. More...

#include <tuple.h>

Data Fields

PmObjDesc_t od
 Object descriptor.
uint16_t length
 Length of tuple I don't expect a tuple to ever exceed 255 elements, but if I set this type to int8_t, a 0-element tuple is too small to be allocated.
pPmObj_t val [1]
 Array of ptrs to objs.

Detailed Description

Tuple obj.

Immutable ordered sequence. Contains array of ptrs to objs.

Definition at line 25 of file tuple.h.


Field Documentation

uint16_t length

Length of tuple I don't expect a tuple to ever exceed 255 elements, but if I set this type to int8_t, a 0-element tuple is too small to be allocated.

Definition at line 36 of file tuple.h.

Object descriptor.

Definition at line 28 of file tuple.h.

Array of ptrs to objs.

Definition at line 39 of file tuple.h.