145 Commits (69c25ea8653566ec97690b5121bd10b753c89426)

Author SHA1 Message Date
Yoctopuce 3d93fed0aa py/objarray: Fix buffer overflow in case of memory allocation failure. 5 months ago
Angus Gratton 4bed614e70 py/objarray: Fix use-after-free if extending a bytearray from itself. 9 months ago
Angus Gratton decf8e6a8b all: Remove the "STATIC" macro and just use "static" instead. 8 months ago
Damien George ca9068e0ef py/objarray: Disallow memoryview addition. 2 years ago
Andrew Leech 5c4153ea37 py/objarray: Raise error on out-of-bound memoryview slice start. 2 years ago
Jim Mussared 2c8dab7ab4 py/objarray: Detect bytearray(str) without an encoding. 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 9dce82776d all: Remove unnecessary locals_dict cast. 2 years ago
Jim Mussared b7d6ee9b75 all: Fix #if inside MP_DEFINE_CONST_OBJ_TYPE for msvc. 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 fb2a57800a all: Simplify buffer protocol to just a "get buffer" callback. 3 years ago
Jim Mussared 28aaab9590 py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 3 years ago
Andrew Leech f7f56d4285 py/objstr: Consolidate methods for str/bytes/bytearray/array. 2 years ago
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable. 3 years ago
Damien George 6d2680fa36 py/objarray: Fix constructing a memoryview from a memoryview. 4 years ago
Damien George 1446107b4d py/objarray: Use mp_obj_memoryview_init helper in mp_obj_new_memoryview. 4 years ago
stijn 09be0c083c py/objarray: Implement more/less comparisons for array. 4 years ago
stijn 57365d8557 py/objarray: Prohibit comparison of mismatching types. 4 years ago
Damien George 9fef1c0bde py: Rename remaining object types to be of the form mp_type_xxx. 4 years ago
stijn dc4d119d3d py/objarray: Fix sign mismatch in comparison. 5 years ago
stijn b909e8b2dd Revert "all: Fix implicit casts of float/double, and signed comparison." 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
David Lechner a2110bd3fc all: Fix implicit casts of float/double, and signed comparison. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Jim Mussared 3ccce89b83 py/objarray: Turn on MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE for memoryview. 5 years ago
Damien George 9ec1caf42e py: Expand type equality flags to 3 separate ones, fix bool/namedtuple. 5 years ago
Nicko van Someren 3aab54bf43 py: Support non-boolean results for equality and inequality tests. 5 years ago
Damien George acfbb9febd py/objarray: Fix amount of free space in array when doing slice assign. 5 years ago
stijn fb54736bdb py/objarray: Add decode method to bytearray. 6 years ago
stijn 90fae9172a py/objarray: Add support for memoryview.itemsize attribute. 6 years ago
Jun Wu 089c9b71d1 py: remove "if (0)" and "if (false)" branches. 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 a261d8b615 py/objarray: Introduce "memview_offset" alias for "free" field of object 6 years ago
Paul Sokolovsky 674e069ba9 py/objarray: bytearray: Allow 2nd/3rd arg to constructor. 6 years ago
Damien George a785a3dbfb py/objarray: Allow to build again when bytearray is disabled. 6 years ago
Damien George c00ee200ac py/objarray: Replace 0x80 with new MP_OBJ_ARRAY_TYPECODE_FLAG_RW macro. 6 years ago
Damien George 5e34a113ea py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN. 7 years ago
Damien George f4059dcc0c all: Use NULL instead of "" when calling mp_raise exception helpers. 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
Javier Candeira 35a1fea90b all: Raise exceptions via mp_raise_XXX 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George ab5689bc9d py/objarray: Use mp_obj_str_get_str instead of mp_obj_str_get_data. 8 years ago
Damien George c88cfe165b py: Use size_t as len argument and return type of mp_get_index. 8 years ago
Damien George f4a12dca58 py/objarray: Disallow slice-assignment to read-only memoryview. 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