Damien George
69661f3343
all: Reformat C and Python source code with tools/codeformat.py.
This is run with uncrustify 0.70.1, and black 19.10b0.
5 years ago
Alexander Steffen
55f33240f3
all: Use the name MicroPython consistently in comments
There were several different spellings of MicroPython present in comments,
when there should be only one.
7 years ago
Damien George
229823942c
py/objtuple: Convert mp_uint_t to size_t where appropriate.
8 years ago
Damien George
999cedb90f
py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR.
This allows the mp_obj_t type to be configured to something other than a
pointer-sized primitive type.
This patch also includes additional changes to allow the code to compile
when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of
mp_uint_t, and various casts.
9 years ago
Damien George
ad9daadf8a
py: Fix attrtuple array length in print and creation.
10 years ago
Daniel Campora
94792dd88f
py: In attrtuple use the correct length value and index for 'fields'.
10 years ago
Damien George
5aa311d330
py: Add attrtuple object, for space-efficient tuples with attr access.
If you need the functionality of a namedtuple but will only make 1 or a
few instances, then use an attrtuple instead.
10 years ago