137 Commits (master)

Author SHA1 Message Date
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Jim Mussared f5f9edf645 all: Rename UMODULE to MODULE in preprocessor/Makefile vars. 2 years ago
David Lechner 2fe6d4eb86 py/objdict: Fix __hash__ for dict_view types. 2 years ago
Rayane Chatrieux f3e4c505d1 py/objdict: Implement dictionary union (PEP 584). 3 years ago
Jim Mussared b41aaaa8a9 py/obj: Optimise code size and performance for make_new as a slot. 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 9dce82776d all: Remove unnecessary locals_dict cast. 2 years ago
Jim Mussared 662b9761b3 all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE. 3 years ago
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable. 3 years ago
Peter Züger ffc854f17f extmod/modujson: Add support for dump/dumps separators keyword-argument. 4 years ago
Damien George 38a204ed96 py: Introduce and use mp_raise_type_arg helper. 3 years ago
Damien George 9fef1c0bde py: Rename remaining object types to be of the form mp_type_xxx. 4 years ago
Jim Mussared 880875bea1 py/objdict: Add mp_const_empty_dict_obj, use it for mp_const_empty_map. 4 years ago
Damien George 456a3abe8d py/obj.h: Add public mp_obj_is_dict_or_ordereddict() helper macro. 4 years ago
Andrew Leech 28370c0450 py/objtype: Add __dict__ attribute for class objects. 4 years ago
Jim Mussared 57fce3bdb2 py/objdict: Fix popitem for ordered dicts. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George a1b18b3ba7 py: Removing dangling "else" to improve code format consistency. 5 years ago
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