418 Commits (de5a9d72dcdaacdd5048195cd5bab007f4b2baef)

Author SHA1 Message Date
Scott Shawcroft aef0586ee1 py: Fix varg helpers by adding vlist variant of mp_obj_new_exception_msg
6 years ago
Scott Shawcroft 75d6abe3bb Correct name of mp_raise_NotImplementedError to make error name.
6 years ago
Paul Sokolovsky 4b3da60324 py/runtime: mp_raise_msg(): Accept NULL argument for message.
6 years ago
Scott Shawcroft 12fa5b3a66 Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call.
6 years ago
Damien George e6003f466e py: De-optimise some uses of mp_getiter, so they don't use the C stack.
6 years ago
Damien George cb6300697c py/runtime: Optimise case of identity iterator so it doesn't alloc RAM.
6 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method.
6 years ago
Damien George 4e3bac2e42 py/runtime: Convert mp_uint_t to size_t where appropriate.
6 years ago
Damien George dcb9ea7215 extmod: Add generic VFS sub-system.
6 years ago
Damien George e9cb1f8077 py/objmodule: Move module init/deinit code into runtime functions.
6 years ago
Damien George d7150b09d7 py/runtime: Refactor default case of switch to remove assert(0).
6 years ago
Damien George aeb2655073 py/runtime: Fix handling of throw() when resuming generator.
6 years ago
Damien George 40863fce6f py/runtime: Refactor assert(0) to improve coverage.
6 years ago
Scott Shawcroft 9ece7c907d Add persistent VFS shares so that the devices can be used with USB
6 years ago
Scott Shawcroft dfb61f01db Merge tag 'v1.8.7'
6 years ago
Damien George 7f1da0a03b py: Add MICROPY_KBD_EXCEPTION config option to provide mp_kbd_exception.
6 years ago
Damien George e8f2db7da3 py/runtime: Zero out fs_user_mount array in mp_init.
6 years ago
Scott Shawcroft f03a9ac505 py: Add support for properties on native objects when they are in the locals dict.
6 years ago
Paul Sokolovsky a0b2c6ad32 py/runtime: mp_resume: Fix exception handling for nanbox port.
6 years ago
Paul Sokolovsky 79d996a57b py/runtime: mp_resume: Handle exceptions in Python __next__().
6 years ago
Damien George 571e6f26db py: Specialise builtin funcs to use separate type for fixed arg count.
6 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate.
6 years ago
Damien George 3a0a771730 py: Add mp_raise_OSError(errno) helper function.
6 years ago
Damien George 93c4a6a3f7 all: Remove 'name' member from mp_obj_module_t struct.
6 years ago
Damien George 5f3bda422a py: If str/bytes hash is 0 then explicitly compute it.
7 years ago
Paul Sokolovsky 9e1b61dedd py/runtime: Factor out exception raising helpers.
7 years ago
Damien George 4cec63a9db py: Implement a simple global interpreter lock.
7 years ago
Damien George 470c429ee1 py/runtime: Properly handle passing user mappings to ** keyword args.
7 years ago
Damien George fea40ad468 py: Fix bug passing a string as a keyword arg in a dict.
7 years ago
Damien George 2a1cca20b1 py: Fix passing of some wide int types to printf varg format list.
7 years ago
Paul Sokolovsky d3b1f0b627 py/runtime: mp_stack_ctrl_init() should be called immediately on startup.
7 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t.
7 years ago
Damien George 978d2e55ef py/runtime: Use appropriate printf fmt for malloc num_bytes.
7 years ago
Damien George 78913211a9 py: Be more restrictive binding self when looking up instance attrs.
7 years ago
Damien George dd5353a405 py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts.
7 years ago
Damien George bdbe8c9ae2 py: Make UNARY_OP_NOT a first-class op, to agree with Py not semantics.
7 years ago
Damien George 3ff259a262 py: Fix calling of parent classmethod from instance of subclass.
7 years ago
Damien George 7a99639cff py: Fix function calls that have positional and a star-arg-with-iterator.
7 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR.
7 years ago
Damien George aaef1851a7 py: Add mp_obj_is_float function (macro) and use it where appropriate.
7 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.
7 years ago
Damien George 58e0f4ac50 py: Allocate parse nodes in chunks to reduce fragmentation and RAM use.
7 years ago
Damien George e5635f4ab3 py: Catch all cases of integer (big and small) division by zero.
7 years ago
Paul Sokolovsky 6557a096d6 runtime: Improve mp_import_name() debug logging.
8 years ago
Damien George 59fba2d6ea py: Remove mp_load_const_bytes and instead load precreated bytes object.
8 years ago
Damien George ed570e4b2a py: Remove mp_load_const_str and replace uses with inlined version.
8 years ago
Damien George 06593fb0f2 py: Use a wrapper to explicitly check self argument of builtin methods.
8 years ago
Damien George c5029bcbf3 py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin.
8 years ago
Damien George 953c23b1bc py: Add stack check to mp_iternext, since it can be called recursively.
8 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function.
8 years ago
Paul Sokolovsky 4a60cac916 runtime: Add TODO for mp_resume() on handling .close().
8 years ago
Paul Sokolovsky 4ed7b7f751 py: iternext() may not return MP_OBJ_NULL, only MP_OBJ_STOP_ITERATION.
8 years ago
Damien George 044c473de2 py: Add %q format support to mp_[v]printf, and use it.
8 years ago
Damien George b1bbe966c4 py: Combine load_attr and store_attr type methods into one (attr).
8 years ago
Damien George 12a5e17afb py: Add finer configuration of static funcs when not in stackless mode.
8 years ago
Paul Sokolovsky e6c6fe3275 runtime: Split mp_call_prepare_args_n_kw_var() from mp_call_method_n_kw_var().
8 years ago
Damien George 55b74d1ff5 py: Combine duplicated code that converts members from a lookup.
8 years ago
Paul Sokolovsky 07b8dc68d6 runtime: mp_load_method_maybe(): Don't use confusing "base" term.
8 years ago
Paul Sokolovsky e104acdb8c runtime: Typo fixes in comments.
8 years ago
Damien George f6532bb9e0 py: Simplify and remove redundant code for __iter__ method lookup.
8 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser.
8 years ago
Damien George 0bfc7638ba py: Protect mp_parse and mp_compile with nlr push/pop block.
8 years ago
Damien George a5efcd4745 py: Specify unary/binary op name in TypeError error message.
8 years ago
Damien George 50912e7f5d py, unix, stmhal: Allow to compile with -Wshadow.
8 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare.
8 years ago
Damien George b4b10fd350 py: Put all global state together in state structures.
8 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core.
8 years ago
Damien George b063b9b36d py: Fix iteration over map in 2 places.
8 years ago
Damien George 78d702c300 py: Allow builtins to be overridden.
8 years ago
Damien George a4c52c5a3d py: Optimise lexer by exposing lexer type.
8 years ago
Damien George 1e9a92f84f py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled.
8 years ago
Paul Sokolovsky 039887a0ac py: Fix bug with right-shifting small ints by large amounts.
8 years ago
Damien George 124df6f8d0 py: Add mp_pending_exception global variable, for VM soft interrupt.
8 years ago
Damien George c9fc620723 py: Implement compile builtin, enabled only on unix port.
8 years ago
Paul Sokolovsky e5a3759ff5 py: Factor out mp_obj_is_package() function.
8 years ago
Damien George 3aa09f5784 py: Use MP_OBJ_NULL instead of NULL in a few places.
8 years ago
Damien George 4091445612 py: Add #if guard around gc-specific code.
8 years ago
Dave Hylands 3556e45711 Allow real memory errors (from locked gc) to be reported with traceback.
8 years ago
Damien George c4d0868df1 py: Implement proper context save/restore for eval/exec; factor code.
8 years ago
Damien George 39dc145478 py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places.
8 years ago
Damien George 4bcd04bcad py: Tidy up exception matching; allow matching of tuple of exceptions.
8 years ago
Damien George b0261341d3 py: For malloc and vstr functions, use size_t exclusively for int type.
8 years ago
Damien George eaaebf3291 stmhal: Initialise stack pointer correctly.
9 years ago
Damien George ca6d75f16d py: Small simplifications in tuple and list accessors.
9 years ago
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h.
9 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h.
9 years ago
Damien George 9c4cbe2ac0 py: Make tuple and list use mp_int_t/mp_uint_t.
9 years ago
Damien George 110ba35980 py: Move native glue code from runtime.c to new file nativeglue.c.
9 years ago
Damien George 7fe2191c9b py: Code clean-up in native emitter; improve thumb native calls.
9 years ago
Damien George 86de21b810 py: Viper can call functions with native types, and raise exceptions.
9 years ago
Damien George e6c0dff967 py: Viper can now store to global.
9 years ago
Damien George 8dbbbbc793 Put call to qstr_init and mp_init_emergency_exc_buf in mp_init.
9 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t.
9 years ago
Paul Sokolovsky caa7334141 stackctrl: Add "mp_" prefix.
9 years ago
Paul Sokolovsky 8a96ebea75 py: Move stack_ctrl_init() to mp_init().
9 years ago
Paul Sokolovsky 3b6f7b95eb py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT.
9 years ago
Damien George df896eceef Merge branch 'alloca' of github.com:marcusva/micropython into marcusva-alloca
9 years ago
Paul Sokolovsky 7e4a2b0edc py: Add generic mp_not_implemented() func to use instead of assert().
9 years ago
Marcus von Appen 0c90eb1658 - FreeBSD provides alloca() via stdlib.h, in contrast to Linux and Windows
9 years ago
Chris Angelico daf973ae00 Change comments (mainly URLs) to no longer specifically say Python 3.3
9 years ago