488 Commits (03a3af417e749860b2771642a738151aef830586)

Author SHA1 Message Date
Damien George c9089e71a1 py/runtime: Add helpers to call a general function on nlr jump callback. 1 year ago
Damien George 8ef5622b9b py/runtime: Always initialise sched_state in mp_init. 1 year ago
Jim Mussared 5e50975a6d py/modsys: Allow sys.path to be assigned to. 1 year ago
Damien George ce31e5a2dc py: Use nlr jump callbacks to optimise compile/execute functions. 2 years ago
Jim Mussared 525557738c py/builtinimport: Optimise sub-package loading. 2 years ago
Damien George 48ffd6596e py: Change MP_UNARY_OP_INT to MP_UNARY_OP_INT_MAYBE. 1 year ago
Damien George ea7031faff py/runtime: If inplace binop fails then try corresponding normal binop. 2 years ago
David Lechner eaccaa3677 py/obj: Remove mp_generic_unary_op(). 2 years ago
Damien George b1229efbd1 all: Fix spelling mistakes based on codespell check. 2 years ago
Damien George cc588ac3a9 py/runtime: Add mp_raise_OSError_with_filename helper function. 2 years ago
Jim Mussared 94beeabd2e py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
Jim Mussared 6da41b5900 py/obj: Merge getiter and iternext mp_obj_type_t slots. 2 years ago
Jim Mussared a52cd5b07d py/obj: Add accessors for type slots and use everywhere. 3 years ago
Jim Mussared 662b9761b3 all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE. 3 years ago
David Lechner 6baeded322 py/runtime: Fix crash in star arg unpacking. 2 years ago
Andrew Leech 1e87b56219 py/obj: Add support for __float__ and __complex__ functions. 2 years ago
Damien George efe23aca71 all: Remove third argument to MP_REGISTER_MODULE. 2 years ago
Jim Mussared d8d3e6ae78 py: Make builtin modules use MP_REGISTER_MODULE. 3 years ago
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable. 3 years ago
Damien George 75506e496f py/scheduler: Add support for scheduling static C-based callbacks. 3 years ago
Damien George 40f5c743db py/runtime: Remove unnecessary check for kw_value == MP_OBJ_NULL. 3 years ago
Damien George bd556b6996 py: Fix compiling and decoding of *args at large arg positions. 3 years ago
David Lechner 2e3f2045f9 py/runtime: Use size_t/ssize_t instead of uint/int. 3 years ago
David Lechner 9b74d71aa7 py/runtime: Drop new_alloc < 4 check. 3 years ago
David Lechner 3679a47eb0 py/runtime: Do not overallocate when len is known. 3 years ago
David Lechner 783b1a868f py/runtime: Allow multiple *args in a function call. 5 years ago
David Lechner 1e99d29f36 py/runtime: Allow multiple **args in a function call. 5 years ago
Damien George ac2293161e py/modsys: Add optional mutable attributes sys.ps1/ps2 and use them. 3 years ago
Damien George cac939ddc3 py/modsys: Add optional sys.tracebacklimit attribute. 3 years ago
Damien George aac5a97d08 ports: Move '.frozen' to second entry in sys.path. 3 years ago
Damien George de43b500bd py/runtime: Allow initialising sys.path/argv with defaults. 3 years ago
Laurens Valk e2ca8ab8fc py/runtime: Allow types to use both .attr and .locals_dict. 4 years ago
Mike Wadsten fe2bc92b4d py/runtime: Fix crash when exc __new__ doesn't return an exc instance. 5 years ago
Damien George 8412568e7b py: Add wrapper macros so hot VM functions can go in fast code location. 3 years ago
Jim Mussared 7b89ad8dbf py/vm: Add a fast path for LOAD_ATTR on instance types. 3 years ago
Jim Mussared 4e39ff221a py/runtime: Fix bool unary op for subclasses of native types. 5 years ago
Damien George 38a204ed96 py: Introduce and use mp_raise_type_arg helper. 3 years ago
Damien George bb00125aaa py: Support single argument to optimised MP_OBJ_STOP_ITERATION. 3 years ago
Damien George b8255dd2e0 py/vm: Simplify handling of MP_OBJ_STOP_ITERATION in yield-from opcode. 3 years ago
Jeff Epler 413f34cd8f all: Fix signed shifts and NULL access errors from -fsanitize=undefined. 3 years ago
David Lechner ca920f7218 py/mpstate: Make exceptions thread-local. 4 years ago
Damien George 6b7c8d3e72 py/runtime: Remove commented-out code from mp_deinit(). 4 years ago
Damien George d4b706c4d0 py: Add option to compile without any error messages at all. 4 years ago
matejcik 1a2ffda175 py/runtime: Make sys.modules preallocate to a configurable size. 4 years ago
Damien George 7e956fae28 py: Rename BITS_PER_BYTE to MP_BITS_PER_BYTE. 4 years ago
Damien George 8a41ee19c2 py: Remove BITS_PER_WORD definition. 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
Damien George 332d83343f py: Rework mp_convert_member_lookup to properly handle built-ins. 4 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 5 years ago