3718 Commits (d1995e50ebda074f8151609bb4c95d4c31072513)

Author SHA1 Message Date
Damien George 06659077a8 all: Update Python code to conform to latest black formatting. 4 years ago
Damien George ee50a6effe py/mphal.h: Introduce mp_hal_time_ns and implement on various ports. 4 years ago
Damien George 5f9b105244 py/runtime: Fix builtin compile() in "single" mode so it prints exprs. 4 years ago
Damien George 9883d8e818 py/persistentcode: Maintain root ptr list of imported native .mpy code. 4 years ago
Jonathan Hogg 37e1b5c891 py/compile: Don't await __aiter__ special method in async-for. 4 years ago
Damien George a853fff838 py/obj.h: Fix mp_seq_replace_slice_no_grow to use memmove not memcpy. 4 years ago
Damien George 332d83343f py: Rework mp_convert_member_lookup to properly handle built-ins. 4 years ago
Damien George d06ae1d2b1 py/obj.h: Make existing MP_TYPE_FLAG_xxx macros sequential. 4 years ago
Damien George 9f911d822e py/objcomplex: Add mp_obj_get_complex_maybe for use in complex bin-op. 4 years ago
Damien George 41fa8b5482 py/emitnative: Implement binary operations for viper uint operands. 4 years ago
Damien George b3b8706d27 py/asm: Add condition codes for signed comparisons. 4 years ago
Damien George aa26fe62d8 py/asm: Add funcs/macros to emit machine code for logical-shift-right. 4 years ago
Damien George 457fdf61c3 py/objtype: Support passing in an OrderedDict to type() as the locals. 4 years ago
Damien George 456a3abe8d py/obj.h: Add public mp_obj_is_dict_or_ordereddict() helper macro. 4 years ago
Damien George 6164c7e666 py/misc.h: Add missing semi-colon in mp_float_union_t for big-endian. 4 years ago
Damien George f2e267da68 py/compile: Implement PEP 526, syntax for variable annotations. 4 years ago
Damien George 131b0de70a py/grammar.h: Consolidate duplicate sub-rules for :test and =test. 4 years ago
Damien George 1783950311 py/compile: Implement PEP 572, assignment expressions with := operator. 4 years ago
Damien George 0fd91e39b1 py/compile: Convert scope test to SCOPE_IS_COMP_LIKE macro. 4 years ago
David Lechner ecd7826316 tools/codeformat.py: Remove sizeof fixup. 4 years ago
Damien George f3062b5cbd py/obj.h: Clarify comments about mp_map_t is_fixed and is_ordered. 4 years ago
Andrew Leech 95cbe6b65e py/objtype: Use mp_obj_dict_copy() for creating obj.__dict__ attribute. 4 years ago
Andrew Leech 28370c0450 py/objtype: Add __dict__ attribute for class objects. 4 years ago
Damien George bd06c698f0 py/dynruntime.h: Make mp_obj_str_get_str raise if arg not a str/bytes. 4 years ago
Jim Mussared e6881f0829 extmod/modbluetooth: Make modbluetooth event not a bitfield. 5 years ago
Damien George 203b10703e py/modbuiltins: Fix getattr to work with class raising AttributeError. 5 years ago
David Lechner 093fd80760 py/modsys: Use consistent naming pattern for module-level const objects. 5 years ago
stijn 97ccde0c43 py/ringbuf: Fix compilation with msvc. 5 years ago
stijn 81db22f693 py/modmath: Work around msvc float bugs in atan2, fmod and modf. 5 years ago
Damien George a902b69dd5 py/py.mk: Use additional CFLAGS to compile string0.c. 5 years ago
Damien George 801f7dca78 py/nativeglue.h: Rename "setjmp" entry to "setjmp_" to avoid any clash. 5 years ago
Damien George 172fc040aa py/parse: Make mp_parse_node_extract_list return size_t instead of int. 5 years ago
Damien George f792e6c283 py/scheduler: Convert mp_sched_full and mp_sched_num_pending to macros. 5 years ago
Damien George 4ede703687 py/parse: Support constant folding of power operator for integers. 5 years ago
Damien George 544c308c18 py/scheduler: Add option to wrap mp_sched_schedule in arbitrary attr. 5 years ago
Damien George bd6ca15444 py/modio: Allow uio.IOBase streams to return errno for read/write error. 5 years ago
Damien George e08ca78f40 py/stream: Remove mp_stream_errno and use system errno instead. 5 years ago
Jim Mussared 57fce3bdb2 py/objdict: Fix popitem for ordered dicts. 5 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 5 years ago
Damien George 388d419ba3 py/makecompresseddata.py: Make compression deterministic. 5 years ago
stijn f31f9a8b70 py/objint: Do not use fpclassify. 5 years ago
stijn 70affd9ba2 all: Fix implicit floating point to integer conversions. 5 years ago
stijn bcf01d1686 all: Fix implicit conversion from double to float. 5 years ago
stijn dc4d119d3d py/objarray: Fix sign mismatch in comparison. 5 years ago
stijn 0ba68f8a1d all: Fix implicit floating point promotion. 5 years ago
stijn b909e8b2dd Revert "all: Fix implicit casts of float/double, and signed comparison." 5 years ago
Damien George 2725a79192 py: Always give noop defines when MICROPY_ROM_TEXT_COMPRESSION disabled. 5 years ago
Romain Goyet bd63c26dd5 py/scope: Add assert to check that low numbered qstrs do fit in uint8_t. 5 years ago
Damien George 7654907e1e py/makecompresseddata.py: Don't prefix str with mark if not compressed. 5 years ago
Damien George 8e048d2548 all: Clean up error strings to use lowercase and change cannot to can't. 5 years ago