Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py/mpz: Fix bug with overflowing C-shift in division routine. | Damien George | 2016-05-08 |
| | | | | | | | When DIG_SIZE=32, a uint32_t is used to store limbs, and no normalisation is needed because the MSB is already set, then there will be left and right shifts (in C) by 32 of a 32-bit variable, leading to undefined behaviour. This patch fixes this bug. | ||
* | tests: Disable memoryview tests that overflow int conversion. | Damien George | 2016-05-07 |
| | | | | They fail on builds with 32-bit word size. | ||
* | py/runtime: Properly handle passing user mappings to ** keyword args. | Damien George | 2016-05-07 |
| | |||
* | py/objstr: Binary type of str/bytes for buffer protocol is 'B'. | Damien George | 2016-05-07 |
| | | | | | | The type is an unsigned 8-bit value, since bytes objects are exactly that. And it's also sensible for unicode strings to return unsigned values when accessed in a byte-wise manner (CPython does not allow this). | ||
* | tests: Update for _io/_collections module having been renamed. | Paul Sokolovsky | 2016-05-02 |
| | |||
* | tests: Add testcase for yielding from a stopped generator. | Paul Sokolovsky | 2016-04-28 |
| | |||
* | py: Fix bug passing a string as a keyword arg in a dict. | Damien George | 2016-04-21 |
| | | | | Addresses issue #1998. | ||
* | tests: Fix dict1.py so it doesn't rely on the order of dict elems. | Damien George | 2016-04-15 |
| | |||
* | tests: Add .exp files for async tests, so they can run with Python 3.4. | Damien George | 2016-04-13 |
| | |||
* | tests: Add 6 tests for async await/for/with. | Damien George | 2016-04-13 |
| | |||
* | py/objarray: Fix array.append so it doesn't extend if append fails. | Damien George | 2016-04-07 |
| | | | | Addresses issue #1965. | ||
* | tests: Split large tests into smaller files, to run with a small heap. | Damien George | 2016-03-15 |
| | | | | | | | All tests in basics/ directory can now run and pass using 64-bit unix port with only a 16k heap (./run-tests --heapsize 16k). Tests in this directory should remain small so they can be used for ports with a small heap. | ||
* | py/objarray: Fix array slice assignment when array is reallocated. | Damien George | 2016-03-14 |
| | | | | Addresses issue #1898. | ||
* | tests: Remove commented out tests so test script is not too big. | Damien George | 2016-03-06 |
| | |||
* | tests: Reduce large object allocations so tests can run with small heap. | Damien George | 2016-03-06 |
| | |||
* | tests/bytearray1: Add testcases for "in" operator. | Paul Sokolovsky | 2016-02-14 |
| | |||
* | py/mpz: Complete implementation of mpz_{and,or,xor} for negative args. | Doug Currie | 2016-02-03 |
| | | | | | | | | | | | | For these 3 bitwise operations there are now fast functions for positive-only arguments, and general functions for arbitrary sign arguments (the fast functions are the existing implementation). By default the fast functions are not used (to save space) and instead the general functions are used for all operations. Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive arguments. | ||
* | py/objstr: For str.format, add nested/computed fields support. | pohmelie | 2016-02-02 |
| | | | | | | | Eg: '{:{}}'.format(123, '>20') @pohmelie was the original author of this patch, but @dpgeorge made significant changes to reduce code size and improve efficiency. | ||
* | py/vm: Fix popping of exception block in UNWIND_JUMP opcode. | Damien George | 2016-02-01 |
| | | | | Fixes issue #1812. | ||
* | py: Add ustruct.pack_into and unpack_from | Dave Hylands | 2016-01-19 |
| | |||
* | builtin property: accept keyword arguments | chrysn | 2016-01-14 |
| | | | | | | | | | | this allows python code to use property(lambda:..., doc=...) idiom. named versions for the fget, fset and fdel arguments are left out in the interest of saving space; they are rarely used and easy to enable when actually needed. a test case is included. | ||
* | tests: Remove builtin_dict test | stijn | 2016-01-14 |
| | | | | This is essentially a duplicate of obj_dict.py | ||
* | py/objstr: In str.format, handle case of no format spec for string arg. | Damien George | 2016-01-04 |
| | | | | | Handles, eg, "{:>20}".format("foo"), where there is no explicit spec for the type of the argument. | ||
* | tests/object_dict.py: Add test for obj.__dict__ . | Paul Sokolovsky | 2016-01-03 |
| | |||
* | py: Implement __dict__ for instances. | stijn | 2016-01-03 |
| | | | | | | Note that even though wrapped in MICROPY_CPYTHON_COMPAT, it is not fully compatible because the modifications to the dictionary do not propagate to the actual instance members. | ||
* | py: Make dir report instance members | Dave Hylands | 2016-01-03 |
| | |||
* | py: Be more restrictive binding self when looking up instance attrs. | Damien George | 2015-12-26 |
| | | | | | | | | | | | When looking up and extracting an attribute of an instance, some attributes must bind self as the first argument to make a working method call. Previously to this patch, any attribute that was callable had self bound as the first argument. But Python specs require the check to be more restrictive, and only functions, closures and generators should have self bound as the first argument Addresses issue #1675. | ||
* | py: Handle case of return within the finally block of try-finally. | Damien George | 2015-12-24 |
| | | | | Addresses issue #1636. | ||
* | tests: Add tests for %-formatting of bytes. | Paul Sokolovsky | 2015-12-20 |
| | | | | | This requires CPython3.5, to not require switching to it, just use .exp file. | ||
* | py: Fix compiler to handle lambdas used as default arguments. | Damien George | 2015-12-12 |
| | | | | Addresses issue #1709. | ||
* | tests: Add test for "not" of a user defined class. | Damien George | 2015-12-10 |
| | |||
* | py: Fix calling of parent classmethod from instance of subclass. | Damien George | 2015-12-09 |
| | | | | Addresses issue #1697. | ||
* | py: Don't try to optimise for+range when args are not simple expressions. | Damien George | 2015-12-08 |
| | | | | Addresses issue #1693. | ||
* | tests/builtin_minmax: Make compatible with @native codegen. | Paul Sokolovsky | 2015-12-07 |
| | |||
* | tests/builtin_minmax: Add testcase for lazy iterable (generator). | Paul Sokolovsky | 2015-12-07 |
| | |||
* | tests: Add min/max "default" agrument test | pohmelie | 2015-12-07 |
| | |||
* | py: Fix function calls that have positional and a star-arg-with-iterator. | Damien George | 2015-12-03 |
| | | | | Addresses issue #1678. | ||
* | py/compile: Do proper checking of * and ** in function definition. | Damien George | 2015-11-23 |
| | | | | | This patch checks that there is only one *, and that ** is last in the arg list. | ||
* | py: Check that second argument to hasattr is actually a string. | Damien George | 2015-11-23 |
| | | | | Fixes issue #1623. | ||
* | tests/int_big_*: Add more tests for result normalization. | Paul Sokolovsky | 2015-11-22 |
| | | | | Tested by comparability to small int/casting to bool. | ||
* | tests/int_big_xor: Test that xor result is normalized. | Paul Sokolovsky | 2015-11-22 |
| | | | | And thus can be successfully used in comparisons, etc. | ||
* | py: Implement default and star args for lambdas. | Damien George | 2015-11-17 |
| | |||
* | tests/base/struct1.py: Add test for repetition counters. | Paul Sokolovsky | 2015-10-31 |
| | |||
* | py: Fix with+for+return bug by popping for-iter when unwinding exc stack. | Damien George | 2015-10-15 |
| | | | | Addresses issue #1182. | ||
* | py: Remove dependency on printf/fwrite in mp_plat_print. | Damien George | 2015-10-15 |
| | | | | See issue #1500. | ||
* | tests: Add test for evaluation order of dictionary key/value pairs. | Damien George | 2015-10-08 |
| | | | | | In Python 3.4 the value is evaluated before the key. In Python 3.5 it's key then value. | ||
* | py/compile: Fix edge case when constant-folding negation of integer. | Damien George | 2015-10-08 |
| | | | | Also adds tests specifically for testing constant folding. | ||
* | tests/basics/builtin_range: PEP8 fixes. | Paul Sokolovsky | 2015-10-05 |
| | |||
* | tests: Allow tests to pass against CPython 3.5. | Damien George | 2015-10-02 |
| | | | | | All breaking changes going from 3.4 to 3.5 are contained in basics/python34.py. | ||
* | py: Catch all cases of integer (big and small) division by zero. | Damien George | 2015-10-01 |
| |