diff --git a/python/port/genhdr/qstrdefs.in.h b/python/port/genhdr/qstrdefs.in.h index 7d65a07c2..20dec6a7a 100644 --- a/python/port/genhdr/qstrdefs.in.h +++ b/python/port/genhdr/qstrdefs.in.h @@ -49,6 +49,7 @@ Q(GeneratorExit) Q(ImportError) Q(IndentationError) Q(IndexError) +Q(keepends) Q(KeyError) Q(KeyboardInterrupt) Q(LookupError) @@ -67,47 +68,88 @@ Q(UnicodeError) Q(ValueError) Q(ZeroDivisionError) Q(_0x0a_) +Q(__abs__) Q(__add__) +Q(__and__) Q(__bool__) Q(__build_class__) Q(__call__) Q(__class__) Q(__contains__) Q(__delitem__) +Q(__divmod__) Q(__enter__) Q(__eq__) Q(__exit__) +Q(__floordiv__) Q(__ge__) Q(__getattr__) Q(__getitem__) Q(__gt__) Q(__hash__) Q(__iadd__) +Q(__iand__) +Q(__ifloordiv__) +Q(__ilshift__) +Q(__imatmul__) +Q(__imod__) Q(__import__) +Q(__imul__) Q(__init__) Q(__int__) +Q(__invert__) +Q(__ior__) +Q(__ipow__) +Q(__irshift__) Q(__isub__) Q(__iter__) +Q(__itruediv__) +Q(__ixor__) Q(__le__) Q(__len__) +Q(__lshift__) Q(__lt__) Q(__main__) +Q(__matmul__) +Q(__mod__) Q(__module__) +Q(__mul__) Q(__name__) #if __EMSCRIPTEN__ Q(__ne__) #endif +Q(__neg__) Q(__new__) Q(__next__) +Q(__or__) Q(__path__) +Q(__pos__) +Q(__pow__) Q(__qualname__) +Q(__radd__) +Q(__rand__) Q(__repl_print__) Q(__repr__) Q(__reversed__) +Q(__rfloordiv__) +Q(__rlshift__) +Q(__rmatmul__) +Q(__rmod__) +Q(__rmul__) +Q(__ror__) +Q(__rpow__) +Q(__rrshift__) +Q(__rshift__) +Q(__rsub__) +Q(__rtruediv__) +Q(__rxor__) Q(__setitem__) Q(__str__) Q(__sub__) +Q(__sub__) Q(__traceback__) +Q(__truediv__) +Q(__xor__) Q(_brace_open__colon__hash_b_brace_close_) Q(_lt_dictcomp_gt_) Q(_lt_genexpr_gt_) @@ -141,6 +183,7 @@ Q(bytecode) Q(bytes) Q(callable) Q(ceil) +Q(center) Q(choice) Q(chr) Q(classmethod) @@ -293,6 +336,7 @@ Q(slice) Q(sort) Q(sorted) Q(split) +Q(splitlines) Q(sqrt) Q(start) Q(startswith) diff --git a/python/src/py/mpconfig.h b/python/src/py/mpconfig.h index 1e786f753..7c213c668 100644 --- a/python/src/py/mpconfig.h +++ b/python/src/py/mpconfig.h @@ -830,7 +830,7 @@ typedef double mp_float_t; // Whether str.center() method provided #ifndef MICROPY_PY_BUILTINS_STR_CENTER -#define MICROPY_PY_BUILTINS_STR_CENTER (0) +#define MICROPY_PY_BUILTINS_STR_CENTER (1) #endif // Whether str.count() method provided @@ -850,7 +850,7 @@ typedef double mp_float_t; // Whether str.splitlines() method provided #ifndef MICROPY_PY_BUILTINS_STR_SPLITLINES -#define MICROPY_PY_BUILTINS_STR_SPLITLINES (0) +#define MICROPY_PY_BUILTINS_STR_SPLITLINES (1) #endif // Whether to support bytearray object @@ -934,20 +934,20 @@ typedef double mp_float_t; // "Reverse" methods are controlled by // MICROPY_PY_REVERSE_SPECIAL_METHODS below. #ifndef MICROPY_PY_ALL_SPECIAL_METHODS -#define MICROPY_PY_ALL_SPECIAL_METHODS (0) +#define MICROPY_PY_ALL_SPECIAL_METHODS (1) #endif // Whether to support all inplace arithmetic operarion methods // (__imul__, etc.) #ifndef MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS -#define MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS (0) +#define MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS (1) #endif // Whether to support reverse arithmetic operarion methods // (__radd__, etc.). Additionally gated by // MICROPY_PY_ALL_SPECIAL_METHODS. #ifndef MICROPY_PY_REVERSE_SPECIAL_METHODS -#define MICROPY_PY_REVERSE_SPECIAL_METHODS (0) +#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1) #endif // Whether to support compile function