Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | objgenerator: Generator must execute in its defining lexical context. | Paul Sokolovsky | 2014-04-17 |
| | | | | | I.e. with its own globals. So, just as for functions, we need to switch globals when resuming a generator. | ||
* | tests: Split out those tests requiring float and import. | Damien George | 2014-04-17 |
| | | | | | | | | | Tests in basics (which should probably be renamed to core) should not rely on float, or import any non-built-in files. This way these tests can be run when those features are not available. All test in basics now pass on the pyboard using stmhal port, except for string-repr which has some issues with character hex printing. | ||
* | tests: Remove print('flush') from 2 tests, since stmhal now works. | Damien George | 2014-04-17 |
| | | | | Fixing the USB problem on stmhal now gets these 2 tests working. | ||
* | run-tests can now skip certain tests when run under Travis CI | Andrew Scheller | 2014-04-16 |
| | | | | | See the `skip_travis_tests` variable. Fixes #495 (also tidied up usage of os.path.basename() function) | ||
* | py: Add builtin functions bin and oct, and some tests for them. | Damien George | 2014-04-15 |
| | |||
* | tests: Disable memoryerror.py test, since it fails on travis. | Damien George | 2014-04-15 |
| | | | | | Would be good to test this, but need to find a way to optionally not running it when on travis. | ||
* | travis: More tests output debugging. | Damien George | 2014-04-15 |
| | |||
* | travis: More tests debugging. | Damien George | 2014-04-15 |
| | |||
* | travis: Debugging failing tests. | Damien George | 2014-04-15 |
| | |||
* | py: Implement __delitem__ method for classes. | Paul Sokolovsky | 2014-04-15 |
| | |||
* | tests: Add property test. | Damien George | 2014-04-13 |
| | |||
* | tests: Make tests pass on pyboard. | Damien George | 2014-04-13 |
| | |||
* | Merge pull request #473 from pfalcon/list-extend-iter | Damien George | 2014-04-13 |
|\ | | | | | objlist: Make .extend accept arbitrary iterable. | ||
| * | objlist: Make .extend accept arbitrary iterable. | Paul Sokolovsky | 2014-04-13 |
| | | |||
* | | py: Rename collections module to _collections. | Paul Sokolovsky | 2014-04-13 |
|/ | | | | | We're not going to implement all the plethora of types in there in C. Funnily, CPython implements defaultdict in C, and namedtuple in Python. | ||
* | py: Make all LOAD_FAST ops check for unbound local. | Damien George | 2014-04-12 |
| | | | | | | | | This is necessary to catch all cases where locals are referenced before assignment. We still keep the _0, _1, _2 versions of LOAD_FAST to help reduced the byte code size in RAM. Addresses issue #457. | ||
* | builtinimport: Implement relative imports. | Paul Sokolovsky | 2014-04-12 |
| | |||
* | builtinimport: Set __path__ attribute ASAP as it's clear we have a package. | Paul Sokolovsky | 2014-04-12 |
| | | | | | This helps with handling "recursive" imports in sane manner, for example when foo/__init__.py has something like "from foo import submod". | ||
* | py: Remove useless implementations of NOT_EQUAL in binary_op's. | Damien George | 2014-04-12 |
| | | | | | | | I'm pretty sure these are never reached, since NOT_EQUAL is always converted into EQUAL in mp_binary_op. No one should call type.binary_op directly, they should always go through mp_binary_op (or mp_obj_is_equal). | ||
* | py: Implement "from pkg import mod" variant of import. | Paul Sokolovsky | 2014-04-12 |
| | |||
* | py: Check that sequence has 2 elements for dict iterable constructor. | Damien George | 2014-04-11 |
| | |||
* | objdict: Implement construction from iterable of pairs. | Paul Sokolovsky | 2014-04-11 |
| | | | | Pairs are limited to tuples so far. | ||
* | objdict: Implement __getitem__ method. | Paul Sokolovsky | 2014-04-11 |
| | |||
* | modstruct: Basic implementation of native struct alignment and types. | Paul Sokolovsky | 2014-04-11 |
| | |||
* | modstruct: Refactor to support both LE and BE packed structs. | Paul Sokolovsky | 2014-04-11 |
| | |||
* | tests: Add test for multi-comparison. | Damien George | 2014-04-10 |
| | |||
* | objfun: Fix default arguments filling loop, was broken in presense of kwargs. | Paul Sokolovsky | 2014-04-10 |
| | |||
* | py: Start implementing "struct" module. | Paul Sokolovsky | 2014-04-10 |
| | | | | | | | | | Only calcsize() and unpack() functions provided so far, for little-endian byte order. Format strings don't support repition spec (like "2b3i"). Unfortunately, dealing with all the various binary type sizes and alignments will lead to quite a bloated "binary" helper functions - if optimizing for speed. Need to think if using dynamic parametrized algos makes more sense. | ||
* | Merge branch 'str-index' of github.com:xbe/micropython into xbe-str-index | Damien George | 2014-04-09 |
|\ | |||
| * | py: Implement str.[r]index() and add tests for them. | xbe | 2014-04-08 |
| | | |||
* | | py: str.join can now take arbitrary iterable as argument. | Damien George | 2014-04-09 |
| | | |||
* | | py: Generators can have their locals closed over. | Damien George | 2014-04-09 |
| | | |||
* | | py: Properly implement deletion of locals and derefs, and detect errors. | Damien George | 2014-04-09 |
| | | | | | | | | | | Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice. | ||
* | | objint: Implement int.from_bytes() class method and .to_bytes() method. | Paul Sokolovsky | 2014-04-09 |
| | | | | | | | | | | | | | | These two are apprerently the most concise and efficient way to convert int to/from bytes in Python. The alternatives are struct and array modules, but methods using them are more verbose in Python code and less efficient in memory/cycles. | ||
* | | tests: Oops: fix del-attr. | Damien George | 2014-04-08 |
| | | |||
* | | py: Remove DELETE_SUBSCR opcode, combine with STORE_SUBSCR. | Damien George | 2014-04-08 |
| | | | | | | | | | | This makes the runtime and object APIs more consistent. mp_store_subscr functionality now moved into objects (ie list and dict store_item). | ||
* | | py: Make bytearray a proper type. | Paul Sokolovsky | 2014-04-08 |
|/ | |||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-04-08 |
|\ | |||
| * | bytearray: Support bytearray(int) constructor. | Paul Sokolovsky | 2014-04-08 |
| | | | | | | | | To create bytearray of given length. | ||
* | | py: implement UNPACK_EX byte code (for: a, *b, c = d) | Damien George | 2014-04-08 |
|/ | |||
* | Display \r and \t escape codes in string repr | Andrew Scheller | 2014-04-08 |
| | |||
* | Add string formatting support for longlong and mpz. | Dave Hylands | 2014-04-07 |
| | |||
* | Merge pull request #445 from lurch/test-sorted-sets | Damien George | 2014-04-07 |
|\ | | | | | Modify set tests to print sorted sets directly | ||
| * | Modify set tests to print sorted sets directly | Andrew Scheller | 2014-04-07 |
| | | | | | | | | instead of creating temporary lists and sorting those in-place | ||
* | | Add tests for sorted() function | Andrew Scheller | 2014-04-07 |
|/ | | | | and check that sorted(list) produces same output as list.sort() | ||
* | tests: Fix more tests which depend on order of elements in set. | Paul Sokolovsky | 2014-04-07 |
| | |||
* | tests: Fix few tests which depend on order of elements in set. | Paul Sokolovsky | 2014-04-07 |
| | |||
* | tests: Fix tests with sets to print sorted set. | Damien George | 2014-04-07 |
| | |||
* | py: Fix str.replace for case when arg 0 or 1 is empty string. | Damien George | 2014-04-07 |
| | |||
* | tests: Fix few tests which depend on order of elements in dict. | Paul Sokolovsky | 2014-04-06 |
| | | | | With dict being unordered of course. |