117 Commits (3436223630751c770c04b2dca35ef0002143f033)

Author SHA1 Message Date
Andrew Leech 1e87f11d3f py/objdict: Support ujson.dump() of OrderedDict objects. 5 years ago
Eric Poulsen 01054f2092 py/objdict: Quote non-string types when used as keys in JSON output. 5 years ago
Paul Sokolovsky 016d9a40fe various: Add and update my copyright line based on git history. 6 years ago
Damien George 054dd33eba py: Downcase MP_xxx_SLOT_IS_FILLED inline functions. 6 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Paul Sokolovsky fbb8335084 py/objdict: Make .fromkeys() method configurable. 6 years ago
Damien George 814f17a3a4 py/objdict: Reword TODO about inlining mp_obj_dict_get to a note. 6 years ago
Damien George d9cdb880ff py/objdict: Make mp_obj_dict_get_map an inline function. 6 years ago
Mike Wadsten a3e01d3642 py/objdict: Disallow possible modifications to fixed dicts. 7 years ago
Damien George 2161d6b603 py/objdict: Reuse dict-view key iterator for standard dict iterator. 7 years ago
Damien George 5e34a113ea py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
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