diff --git a/python/port/genhdr/qstrdefs.in.h b/python/port/genhdr/qstrdefs.in.h index d241dacdd..4912aabff 100644 --- a/python/port/genhdr/qstrdefs.in.h +++ b/python/port/genhdr/qstrdefs.in.h @@ -6,6 +6,11 @@ QCFG(BYTES_IN_HASH, 1) QCFG(BYTES_IN_LEN, 1) +Q(color) +Q(draw_string) +Q(get_pixel) +Q(set_pixel) + Q(%#o) Q(%#x) Q() @@ -24,16 +29,13 @@ Q(AssertionError) Q(AttributeError) Q(BaseException) Q(BufferError) -Q(complex) Q(EOFError) Q(Ellipsis) Q(Exception) Q(FileExistsError) Q(FileNotFoundError) -Q(float) Q(FloatingPointError) Q(GeneratorExit) -Q(imag) Q(ImportError) Q(IndentationError) Q(IndexError) @@ -46,7 +48,6 @@ Q(NoneType) Q(NotImplementedError) Q(OSError) Q(OverflowError) -Q(real) Q(RuntimeError) Q(StopIteration) Q(SyntaxError) @@ -104,10 +105,14 @@ Q(_percent__hash_o) Q(_percent__hash_x) Q(_star_) Q(abs) +Q(acos) Q(all) Q(any) Q(append) Q(args) +Q(asin) +Q(atan) +Q(atan2) Q(bin) Q(bool) Q(bound_method) @@ -115,33 +120,42 @@ Q(builtins) Q(bytecode) Q(bytes) Q(callable) +Q(ceil) Q(chr) Q(classmethod) Q(clear) Q(close) Q(closure) -Q(color) +Q(complex) Q(const) Q(copy) +Q(copysign) +Q(cos) Q(count) +Q(degrees) Q(dict) Q(dict_view) Q(dir) Q(divmod) -Q(draw_string) +Q(e) Q(end) Q(endswith) Q(eval) Q(exec) +Q(exp) Q(extend) +Q(fabs) Q(find) +Q(float) +Q(floor) +Q(fmod) Q(format) +Q(frexp) Q(from_bytes) Q(fromkeys) Q(function) Q(generator) Q(get) -Q(get_pixel) Q(getattr) Q(globals) Q(hasattr) @@ -150,13 +164,17 @@ Q(heap_lock) Q(heap_unlock) Q(hex) Q(id) +Q(imag) Q(index) Q(insert) Q(int) Q(isalpha) Q(isdigit) +Q(isfinite) +Q(isinf) Q(isinstance) Q(islower) +Q(isnan) Q(isspace) Q(issubclass) Q(isupper) @@ -168,15 +186,19 @@ Q(kandinsky) Q(kbd_intr) Q(key) Q(keys) +Q(ldexp) Q(len) Q(list) Q(little) Q(locals) +Q(log) Q(lower) Q(lstrip) Q(map) +Q(math) Q(maximum recursion depth exceeded) Q(micropython) +Q(modf) Q(module) Q(next) Q(object) @@ -184,11 +206,14 @@ Q(oct) Q(open) Q(opt_level) Q(ord) +Q(pi) Q(pop) Q(popitem) Q(pow) Q(print) +Q(radians) Q(range) +Q(real) Q(remove) Q(replace) Q(repr) @@ -198,15 +223,15 @@ Q(rindex) Q(round) Q(rsplit) Q(rstrip) -Q(schedule) Q(send) Q(sep) -Q(set_pixel) Q(setattr) Q(setdefault) +Q(sin) Q(sort) Q(sorted) Q(split) +Q(sqrt) Q(start) Q(startswith) Q(staticmethod) @@ -216,8 +241,10 @@ Q(str) Q(strip) Q(sum) Q(super) +Q(tan) Q(throw) Q(to_bytes) +Q(trunc) Q(tuple) Q(type) Q(update) diff --git a/python/port/mpconfigport.h b/python/port/mpconfigport.h index e48575db1..8118de7ae 100644 --- a/python/port/mpconfigport.h +++ b/python/port/mpconfigport.h @@ -45,7 +45,7 @@ #define MICROPY_PY_ARRAY (0) #define MICROPY_PY_ATTRTUPLE (0) #define MICROPY_PY_COLLECTIONS (0) -#define MICROPY_PY_MATH (0) +#define MICROPY_PY_MATH (1) #define MICROPY_PY_CMATH (0) #define MICROPY_PY_IO (0) #define MICROPY_PY_STRUCT (0)