105 Commits (f1dd0fd7df758e2b3ac28dcdb16af8582577b814)

Author SHA1 Message Date
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Paul Sokolovsky bfc2092dc5 py/modsys: Initial implementation of sys.getsizeof(). 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 8b84b8ab8a py/objdict: Factorise dict accessor helper to reduce code size. 7 years ago
Damien George 816413e4b2 py: Optimise types for common case where type has a single parent type. 8 years ago
Damien George 18c059febf py: Shorten a couple of error messages. 8 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George e6003f466e py: De-optimise some uses of mp_getiter, so they don't use the C stack. 8 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Damien George 1ea2f7a8ce py/objdict: Convert mp_uint_t to size_t where appropriate. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 2750a7b38e py/objdict: Actually provide the key that failed in KeyError exception. 8 years ago
Damien George a3edeb9ea5 py/objdict: Fix optimisation for allocating result in fromkeys. 8 years ago
Paul Sokolovsky 83e0ebabb4 py/objdict: Get rid of asserts (remove/replace with mp_check_self()). 8 years ago
Mark Anthony Palomer 3131053e1a py/objdict: Implemented OrderedDict equality check. 9 years ago
Damien George 3ff16ff52e py: Declare constant data as properly constant. 9 years ago
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Damien George 8212d97317 py: Use polymorphic iterator type where possible to reduce code size. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Damien George 83229d3ffe py: Use MP_OBJ_NULL instead of NULL when appropriate. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
Damien George 044c473de2 py: Add %q format support to mp_[v]printf, and use it. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Paul Sokolovsky 0090c714ba objdict: Cast mp_obj_t to concrete types explicitly. 10 years ago
Paul Sokolovsky 0ef01d0a75 py: Implement core of OrderedDict type. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George d2d64f00fb py: Add "default" to switches to allow better code flow analysis. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 969a6b37bf py: Make functions static where appropriate. 10 years ago
Damien George 612045f53f py: Add native json printing using existing print framework. 10 years ago
Damien George 8a9b999f1c py: Make dict use a bit less RAM when iterating; properly del values. 10 years ago
Damien George 93965e726f py: Make map, dict, set use mp_int_t/mp_uint_t exclusively. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 75ce9256b2 objstr: Implement "%(key)s" % {} formatting for strings and dicts. 11 years ago
Damien George bcb6ca4d5e py: Implement full behaviour of dict.update(), and dict(). 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Damien George d0a5bf34f7 py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 729f7b42d6 py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 11 years ago
Paul Sokolovsky 14de114ba8 objdict: Add __delitem__. 11 years ago
Paul Sokolovsky cd94b384a3 objdict: Add __setitem__. 11 years ago
Paul Sokolovsky 68e7c5146c py: Factor out impl of special methods for builtin types into opmethods.c 11 years ago
Damien George e22d76e73b py: Fix up object equality test. 11 years ago