Jim Mussared
a52cd5b07d
py/obj: Add accessors for type slots and use everywhere.
This is a no-op, but sets the stage for changing the mp_obj_type_t
representation.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
3 years ago
Jim Mussared
e8355eb163
py/obj: Add "full" and "empty" non-variable-length mp_obj_type_t.
This will always have the maximum/minimum size of a mp_obj_type_t
representation and can be used as a member in other structs.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
3 years ago
stijn
51fd6c9777
extmod/ure: Use single function for match/search/sub.
Saves about 500 bytes on unix x64 and enables CPython-conform
usage of passing a re object to these functions.
4 years ago
Jim Mussared
def76fe4d9
all: Use MP_ERROR_TEXT for all error messages.
5 years ago
Jim Mussared
c34e7b9d4c
py/dynruntime.mk: Set MICROPY_ENABLE_DYNRUNTIME instead of per module.
So this setting could be used by other source files if needed.
5 years ago
Damien George
42c1aed2bb
examples/natmod: Add ure example.
5 years ago