Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py/binary: Change internal bytearray typecode from 0 to 1. | Damien George | 2017-08-17 |
| | | | | | | | The value of 0 can't be used because otherwise mp_binary_get_size will let a null byte through as the type code (intepreted as byterray). This can lead to invalid type-specifier strings being let through without an error in the struct module, and even buffer overruns. | ||
* | py/binary.c: Fix bug when packing big-endian 'Q' values. | Bas van Sisseren | 2017-08-15 |
| | | | | | | | | | | | | Without bugfix: struct.pack('>Q', 16) b'\x00\x00\x00\x10\x00\x00\x00\x00' With bugfix: struct.pack('>Q', 16) b'\x00\x00\x00\x00\x00\x00\x00\x10' | ||
* | py/objstr: Raise an exception for wrong type on RHS of str binary op. | Damien George | 2017-08-09 |
| | | | | | The main case to catch is invalid types for the containment operator, of the form str.__contains__(non-str). | ||
* | py/objtuple: Allow to use inplace-multiplication operator on tuples. | Damien George | 2017-08-09 |
| | |||
* | all: Use the name MicroPython consistently in comments | Alexander Steffen | 2017-07-31 |
| | | | | | There were several different spellings of MicroPython present in comments, when there should be only one. | ||
* | tests/basics/builtin_exec: Test various globals/locals args to exec(). | Tom Collins | 2017-07-21 |
| | |||
* | tests: Rename exec1.py to builtin_exec.py. | Damien George | 2017-07-21 |
| | |||
* | py/objgenerator: Allow to hash generators and generator instances. | Damien George | 2017-07-07 |
| | | | | | Adds nothing to the code size, since it uses existing empty slots in the type structures. | ||
* | tests/basics: Add tests for arithmetic operators precedence. | Krzysztof Blazewicz | 2017-07-05 |
| | |||
* | tests/basics/namedtuple1: Add test for creating with pos and kw args. | Damien George | 2017-06-29 |
| | |||
* | tests/basics: Add tests for for-else statement. | Damien George | 2017-06-22 |
| | |||
* | py/objint: In to_bytes(), allow length arg to be any int and check sign. | Damien George | 2017-06-15 |
| | |||
* | py/objint: Support "big" byte-order in int.to_bytes(). | Damien George | 2017-06-15 |
| | |||
* | py/compile: Raise SyntaxError if positional args are given after */**. | Damien George | 2017-06-14 |
| | | | | | | | | In CPython 3.4 this raises a SyntaxError. In CPython 3.5+ having a positional after * is allowed but uPy has the wrong semantics and passes the arguments in the incorrect order. To prevent incorrect use of a function going unnoticed it is important to raise the SyntaxError in uPy, until the behaviour is fixed to follow CPython 3.5+. | ||
* | tests/basics: Convert "sys.exit()" to "raise SystemExit". | Paul Sokolovsky | 2017-06-10 |
| | |||
* | tests/basics/string_rsplit: Add tests for negative "maxsplit" argument. | Damien George | 2017-06-02 |
| | |||
* | various: Spelling fixes | Ville Skyttä | 2017-05-29 |
| | |||
* | tests/basics: Add more tests for unwind jumps from within a try-finally. | Damien George | 2017-05-25 |
| | | | | These tests excercise cases that are fixed by the previous two commits. | ||
* | tests/basics/builtin_range: Add tests for negative slicing of range. | Damien George | 2017-05-18 |
| | |||
* | tests/basics/list_slice_3arg: Add more tests for negative slicing. | Damien George | 2017-05-18 |
| | |||
* | tests/basics/lexer: Add line continuation tests for lexer. | Tom Collins | 2017-05-12 |
| | | | | | | Tests for an issue with line continuation failing in paste mode due to the lexer only checking for \n in the "following" character position, before next_char() has had a chance to convert \r and \r\n to \n. | ||
* | tests/basics/lexer: Add lexer tests for input starting with newlines. | Tom Collins | 2017-05-09 |
| | |||
* | tests/basics: Add memoryview test for big ints. | Damien George | 2017-05-09 |
| | |||
* | tests/basics: Update array test for big-int with lL typecodes. | Damien George | 2017-05-09 |
| | |||
* | tests: Move super-as-local test from cpydiff to basic tests. | Damien George | 2017-05-06 |
| | | | | It's now possible to use the name "super" as a local variable. | ||
* | tests/basics: Add tests for int.from_bytes when src has trailing zeros. | Damien George | 2017-04-25 |
| | | | | The trailing zeros should be truncated from the converted value. | ||
* | tests: Add tests for calling super and loading a method directly. | Damien George | 2017-04-22 |
| | |||
* | tests/basics: Add test for tuple inplace add. | Damien George | 2017-04-05 |
| | |||
* | tests/basics: Add tests for raising ValueError when range() gets 0 step. | Damien George | 2017-04-05 |
| | |||
* | tests/basics: Add tests for list and bytearray growing using themselves. | Damien George | 2017-04-02 |
| | |||
* | tests/basics: Add test for super() when self is closed over. | Damien George | 2017-03-27 |
| | |||
* | tests/basics/bytes_add: Add tests for optimised bytes addition. | Damien George | 2017-03-16 |
| | |||
* | tests/basics: Move string-modulo-format int tests to dedicated file. | Damien George | 2017-03-15 |
| | |||
* | tests/basics: Add test for string module formatting with int argument. | Damien George | 2017-03-15 |
| | |||
* | tests/basics/string_format2: Adjust comment now that tests succeed. | Damien George | 2017-03-15 |
| | |||
* | tests/basics/struct_micropython: Add test for 'S' typecode in ustruct. | Damien George | 2017-03-14 |
| | | | | | | | | The 'S' typecode is a uPy extension so it should be grouped with the other extension (namely 'O' typecode). Testing 'S' needs uctypes which is an extmod module and not always available, so this test is made optional and will only be run on ports that have (u)struct and uctypes. Otherwise it will be silently skipped. | ||
* | tests/basics/fun_error: Split out skippable test. | Paul Sokolovsky | 2017-03-10 |
| | |||
* | tests/dict_fromkeys: Split out skippable part. | Paul Sokolovsky | 2017-03-09 |
| | |||
* | tests/basic: Make various tests skippable. | Paul Sokolovsky | 2017-03-09 |
| | |||
* | tests/basics/unpack1.py: Test if *a, = b copies b when b is a list. | Krzysztof Blazewicz | 2017-03-07 |
| | |||
* | tests/basics/string_join.py: Add test case where argument is not iterable. | Krzysztof Blazewicz | 2017-03-07 |
| | |||
* | tests/basic: Split tests into working with small ints and not working. | Paul Sokolovsky | 2017-03-04 |
| | | | | | | Tests which don't work with small ints are suffixed with _intbig.py. Some of these may still work with long long ints and need to be reclassified later. | ||
* | tests/basics: Add further tests for OrderedDict. | Damien George | 2017-03-03 |
| | |||
* | py/objarray: Disallow slice-assignment to read-only memoryview. | Damien George | 2017-02-27 |
| | | | | Also comes with a test for this. Fixes issue #2904. | ||
* | py/objlist: For list slice assignment, allow RHS to be a tuple or list. | Damien George | 2017-02-20 |
| | | | | | Before this patch, assigning anything other than a list would lead to a crash. Fixes issue #2886. | ||
* | tests/basics/string_join: Add more tests for string concatenation. | Damien George | 2017-02-17 |
| | |||
* | tests/basic/: Make various tests skippable. | Paul Sokolovsky | 2017-02-15 |
| | | | | To run the testsuite on small ports. | ||
* | tests/gen_yield_from_close: Use range() instead of reversed(). | Paul Sokolovsky | 2017-02-15 |
| | | | | As a "more basic" builtin iterator, present even in smaller ports. | ||
* | tests/dict_fromkeys: Revert to use reversed() to run in native codegen mode. | Paul Sokolovsky | 2017-02-15 |
| | |||
* | tests/basic/[a-f]*: Make skippable. | Paul Sokolovsky | 2017-02-15 |
| | | | | For small ports which don't have all features enabled. |