1399 Commits (c15be989ee195d375f93b39aa13bc4e07b36c1eb)

Author SHA1 Message Date
Paul Sokolovsky 71c1a05d88 tests/run-tests: Close device under test using "finally".
5 years ago
Damien George 98dd126e98 tests/extmod: Add test for '-' in character class in regex.
5 years ago
Damien George 0864a6957f py: Clean up unary and binary enum list to keep groups together.
5 years ago
Damien George dfa563c71f py/objstr: Make empty bytes object have a null-terminating byte.
5 years ago
Damien George 1394258f37 py/objset: Include the failed key in a KeyError raised from set.remove.
5 years ago
Damien George 2ac1364688 py/objset: Check that RHS of a binary op is a set/frozenset.
5 years ago
Paul Sokolovsky 8e0b9f495b tests/extmod: Add test for ure regexes leading to infinite recursion.
5 years ago
Damien George bdc6e86e07 py/objfloat: Support raising a negative number to a fractional power.
5 years ago
David Lechner 62849b7010 py: Add config option to print warnings/errors to stderr.
5 years ago
Paul Sokolovsky 9d836fedbd py: Clarify which mp_unary_op_t's may appear in the bytecode.
5 years ago
Damien George ede8a0235b py/vstr: Raise a RuntimeError if fixed vstr buffer overflows.
5 years ago
Damien George 96fd80db13 py/objexcept: Prevent infinite recursion when allocating exceptions.
5 years ago
Paul Sokolovsky fc9a6dd09e py/objstr: strip: Don't strip "\0" by default.
5 years ago
Paul Sokolovsky 9dce823cfd py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS.
5 years ago
Paul Sokolovsky 75163325ae tests/cpydiff: Add cases for locals() discrepancies.
5 years ago
Paul Sokolovsky f54b3527f2 tests/run-tests: Fix copy-paste mistake in var name.
5 years ago
Paul Sokolovsky d1f909005a tests/run-tests: Skip class_inplace_op for minimal profile.
5 years ago
Paul Sokolovsky d6f9d64d97 tests/class_reverse_op: Test for reverse arith ops special methods.
5 years ago
Damien George 0708dd495f tests/run-bench-tests: Update locations of executables, now in ports/.
6 years ago
Paul Sokolovsky b8ee7ab5b9 py/runtime0.h: Put inplace arith ops in front of normal operations.
6 years ago
Paul Sokolovsky 50b9329eba py/runtime0.h: Move MP_BINARY_OP_DIVMOD to the end of mp_binary_op_t.
6 years ago
Paul Sokolovsky d4d1c45a55 py/runtime0.h: Move relational ops to the beginning of mp_binary_op_t.
6 years ago
Paul Sokolovsky 5c603bd0fd py/objlist: Properly implement comparison with incompatible types.
6 years ago
tll 68c28174d0 py/objstr: Add check for valid UTF-8 when making a str from bytes.
6 years ago
Damien George 4a93801c12 all: Update Makefiles and others to build with new ports/ dir layout.
6 years ago
Paul Sokolovsky 1aaba5cabe py/objtuple: Properly implement comparison with incompatible types.
6 years ago
Paul Sokolovsky 376618cd8a tests/class_inplace_op: Test for inplace op fallback to normal one.
6 years ago
Damien George d4b75f6b68 py/obj: Fix comparison of float/complex NaN with itself.
6 years ago
Paul Sokolovsky 9950865c39 py/objfloat: Fix binary ops with incompatible objects.
6 years ago
Damien George 2daacc5cee py/modstruct: Check and prevent buffer-write overflow in struct packing.
6 years ago
Damien George 79d5acbd01 py/modstruct: Check and prevent buffer-read overflow in struct unpacking
6 years ago
Damien George 793d826d9d py/modstruct: In struct.pack, stop converting if there are no args left.
6 years ago
Paul Sokolovsky b349479a49 tests/class_new: Add another testcase for __new__/__init__ interaction.
6 years ago
Paul Sokolovsky 35be9e805f tests/class_new: Add checks for __init__ being called and other improvements.
6 years ago
Paul Sokolovsky b565c36963 tests/object_new: Better messages, check user __new__() method.
6 years ago
Paul Sokolovsky 784909ce16 py/objtype: Handle NotImplemented return from binary special methods.
6 years ago
Paul Sokolovsky 37379a2974 py/objstr: startswith, endswith: Check arg to be a string.
6 years ago
Paul Sokolovsky e3383e9352 py/stream: seek: Consistently handle negative offset for SEEK_SET.
6 years ago
Alex Robbins c89254fd0f extmod/modubinascii: Rewrite mod_binascii_a2b_base64.
6 years ago
Damien George 025e5f2b33 py/binary: Change internal bytearray typecode from 0 to 1.
6 years ago
Eric Poulsen d5191edf7f extmod/modussl_mbedtls.c: Add ussl.getpeercert() method.
6 years ago
Bas van Sisseren a14ce77b28 py/binary.c: Fix bug when packing big-endian 'Q' values.
6 years ago
Paul Sokolovsky bfc2092dc5 py/modsys: Initial implementation of sys.getsizeof().
6 years ago
Damien George 3d25d9c7d9 py/objstr: Raise an exception for wrong type on RHS of str binary op.
6 years ago
Damien George eb2784e8a2 py/objtuple: Allow to use inplace-multiplication operator on tuples.
6 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments
6 years ago
Damien George 04552ff71b py: Implement raising a big-int to a negative power.
6 years ago
Tom Collins 6cfe737597 tests/basics/builtin_exec: Test various globals/locals args to exec().
6 years ago
Damien George 6c1b7e008d tests: Rename exec1.py to builtin_exec.py.
6 years ago
Paul Sokolovsky 4368ae3142 extmod/modussl_axtls: Allow to close ssl stream multiple times.
6 years ago