| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2015-10-15 | py: Fix with+for+return bug by popping for-iter when unwinding exc stack. | Damien George | |
| Addresses issue #1182. | |||
| 2015-10-15 | py: Remove dependency on printf/fwrite in mp_plat_print. | Damien George | |
| See issue #1500. | |||
| 2015-10-08 | tests: Add test for evaluation order of dictionary key/value pairs. | Damien George | |
| In Python 3.4 the value is evaluated before the key. In Python 3.5 it's key then value. | |||
| 2015-10-08 | py/compile: Fix edge case when constant-folding negation of integer. | Damien George | |
| Also adds tests specifically for testing constant folding. | |||
| 2015-10-05 | tests/basics/builtin_range: PEP8 fixes. | Paul Sokolovsky | |
| 2015-10-02 | tests: Allow tests to pass against CPython 3.5. | Damien George | |
| All breaking changes going from 3.4 to 3.5 are contained in basics/python34.py. | |||
| 2015-10-01 | py: Catch all cases of integer (big and small) division by zero. | Damien George | |
| 2015-10-01 | py/mpz: Fix bignum anding of large negative with smaller positive int. | Damien George | |
| 2015-10-01 | tests: Add further tests for mpz code. | Damien George | |
| 2015-09-28 | tests: Test slicing a range that does not start at zero. | Tom Soulanille | |
| 2015-09-23 | py: Fix call args when a stararg is followed by keyword args. | Delio Brignoli | |
| 2015-09-15 | py/objslice: Make slice attributes (start/stop/step) readable. | Tom Soulanille | |
| Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default. | |||
| 2015-09-15 | py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize. | Damien George | |
| When creating constant mpz's, the length of the mpz must be exactly how many digits are used (not allocated) otherwise these numbers are not compatible with dynamically allocated numbers. Addresses issue #1448. | |||
| 2015-09-07 | tests: Move int+unicode test to unicode-specific test directory. | Damien George | |
| 2015-09-07 | py/compile: Refine SyntaxError for repeated use of global/nonlocal. | Damien George | |
| 2015-09-03 | tests: Add tests to improve coverage of objstr.c. | Damien George | |
| 2015-09-01 | py/binary: Add support for array('q') and array('Q'). | Damien George | |
| 2015-09-01 | tests: Add test for exception-chaining raise syntax. | Paul Sokolovsky | |
| 2015-08-30 | py/objstr: Simplify error handling for bad conversion specifier. | Damien George | |
| 2015-08-30 | tests: Add test where __getitem__ raises IndexError to stop iteration. | Damien George | |
| 2015-08-29 | py/objstr: Fix error reporting for unexpected end of modulo format str. | Damien George | |
| 2015-08-29 | py/objstr: Fix error type for badly formatted format specifier. | Damien George | |
| Was KeyError, should be ValueError. | |||
| 2015-08-29 | tests: Add a few tests for bool, bytearray, float to improve coverage. | Damien George | |
| 2015-08-30 | tests: Split byteorder-dependent tests to *_endian.py's. | Paul Sokolovsky | |
| 2015-08-28 | tests: Add test on set/frozenset equality. | Paul Sokolovsky | |
| 2015-08-28 | objset: frozensets are hashable. | Paul Sokolovsky | |
| 2015-08-21 | tests: Add more tests to improve coverage, mostly testing exceptions. | Damien George | |
| 2015-08-02 | py/objlist: Make list += accept all arguments and add test. | Damien George | |
| 2015-07-24 | tests: Skip parser test if "compile" builtin is not available. | Damien George | |
| 2015-07-24 | py/parse: Fix handling of empty input so it raises an exception. | Damien George | |
| 2015-07-23 | py/lexer: Raise SyntaxError when str hex escape sequence is malformed. | Damien George | |
| Addresses issue #1390. | |||
| 2015-07-20 | py: Implement memoryview slice assignment. | Delio Brignoli | |
| Adds ability to do "memcpy" with memoryview objects, such as: m1[0:3] = m2[2:5]. | |||
| 2015-07-19 | modbuiltins: Implement round() to precision. | Sebastian Plamauer | |
| 2015-06-24 | tests: Adapt basics/memoryerror.py for ports with lower heap sizes. | Daniel Campora | |
| 2015-06-20 | py: Use a wrapper to explicitly check self argument of builtin methods. | Damien George | |
| Previous to this patch a call such as list.append(1, 2) would lead to a seg fault. This is because list.append is a builtin method and the first argument to such methods is always assumed to have the correct type. Now, when a builtin method is extracted like this it is wrapped in a checker object which checks the the type of the first argument before calling the builtin function. This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and is enabled by default. See issue #1216. | |||
| 2015-06-13 | py: Implement divmod for mpz bignum. | Damien George | |
| 2015-05-12 | tests: Add further tests for class defining __hash__. | Damien George | |
| 2015-05-12 | py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. | Damien George | |
| Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as the operator argument. Hashing for int, str and bytes still go via fast-path in mp_unary_op since they are the most common objects which need to be hashed. This lead to quite a bit of code cleanup, and should be more efficient if anything. It saves 176 bytes code space on Thumb2, and 360 bytes on x86. The only loss is that the error message "unhashable type" is now the more generic "unsupported type for __hash__". | |||
| 2015-05-11 | vm: Properly handle StopIteration raised in user instance iterator. | Paul Sokolovsky | |
| I.e. in bytecode Python functions. | |||
| 2015-05-10 | py: iternext() may not return MP_OBJ_NULL, only MP_OBJ_STOP_ITERATION. | Paul Sokolovsky | |
| Testing for incorrect value led to premature termination of generator containing yield from for such iterator (e.g. "yield from [1, 2]"). | |||
| 2015-05-06 | py: Fix naming of function arguments when function is a closure. | Damien George | |
| Addresses issue #1226. | |||
| 2015-05-05 | obj: Handle user instance hash based on Python adhoc rules. | Paul Sokolovsky | |
| User instances are hashable by default (using __hash__ inherited from "object"). But if __eq__ is defined and __hash__ not defined in particular class, instance is not hashable. | |||
| 2015-05-04 | modstruct: Rename module to "ustruct", to allow full Python-level impl. | Paul Sokolovsky | |
| 2015-05-04 | py: Check that arg to object.__new__ is a user-defined type. | Damien George | |
| Addresses issue #1203. | |||
| 2015-04-25 | py: Support conversion of bignum to bytes. | Damien George | |
| This gets int.to_bytes working for bignum, and also struct.pack with 'q' and 'Q' args on 32-bit machines. Addresses issue #1155. | |||
| 2015-04-22 | tests: Add tests for attrtuple, and for more corner cases. | Damien George | |
| 2015-04-19 | py: Fix builtin ord so that it can handle bytes values >= 0x80. | Damien George | |
| Addresses issue #1188. | |||
| 2015-04-16 | tests: Convert line endings in fun_name.py from CRLF to LF. | Damien George | |
| 2015-04-16 | objarray: Support assignment of bytes to bytearray slice. | Paul Sokolovsky | |
| 2015-04-12 | objstr: split(None): Fix whitespace properly. | Paul Sokolovsky | |
