| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-05-05 | tests/bench/var: Add tests for class/instance var access. | Paul Sokolovsky | |
| Also compared with method abstraction for accessing instance vars - it's more than 3 times slower than accessing var directly. | |||
| 2014-05-05 | tests: Add framework for comparative benchmarking. | Paul Sokolovsky | |
| Motivation is optimizing handling of various constructs as well as understanding which constructs are more efficient in MicroPython. More info: http://forum.micropython.org/viewtopic.php?f=3&t=77 Results are wildly unexpected. For example, "optimization" of range iteration into while loop makes it twice as slow. Generally, the more bytecodes, the slower the code. | |||
| 2014-05-04 | tests, pyb: Add 'import pyb' when needed. | Damien George | |
| 2014-05-03 | py, stream: Implement readlines for a stream. | Damien George | |
| 2014-05-03 | tests: Add a suite of tests specifically for the pyboard. | Damien George | |
| In tests/pyb is now a suite of tests that tests the pyb module on the pyboard. They include expected output files because we can't run CPython on the pyboard to compare against. run-tests script has now been updated to allow pyboard tests to be run. Just pass the option --pyboard. This runs all basic, float and pyb tests. Note that float/math-fun.py currently fails because not all math functions are implemented in stmhal/. | |||
| 2014-05-02 | tests: Add testcases for catching user Exception subclasses. | Paul Sokolovsky | |
| 2014-05-02 | objtype: .print() Exception instances in adhoc way. | Paul Sokolovsky | |
| This is ugly, just as expected. | |||
| 2014-05-01 | Fix the builtin min() and max() functions (and add tests). | Andrew Scheller | |
| Fixes #539 | |||
| 2014-04-30 | tests: Add test for calling inherited native method on subclass. | Paul Sokolovsky | |
| 2014-04-29 | tests: Add test for accessing attribute of inherited native type. | Paul Sokolovsky | |
| 2014-04-29 | tests: Add basic tests for subclassing native types and using special methods. | Paul Sokolovsky | |
| Even of these, some features do not yet work as expected. | |||
| 2014-04-28 | py: Fix bug in map lookup of interned string vs non-interned. | Damien George | |
| Had choice of either interning or forcing full equality comparison, and chose latter. See comments in mp_map_lookup. Addresses issue #523. | |||
| 2014-04-27 | py: Implement keyword-only args. | Damien George | |
| Implements 'def f(*, a)' and 'def f(*a, b)', but not default keyword-only args, eg 'def f(*, a=1)'. Partially addresses issue #524. | |||
| 2014-04-26 | modio: Implement io.StringIO class. | Paul Sokolovsky | |
| 2014-04-26 | objstr: Implement .lstrip() & .rstrip(). | Paul Sokolovsky | |
| Share code with .strip(). TODO: optimize .rstrip(). | |||
| 2014-04-25 | py: Support instance __call__ method. | Paul Sokolovsky | |
| 2014-04-19 | test/class-super: Expose super() breakage. | Paul Sokolovsky | |
| 2014-04-19 | objarray: Implement slice subscription. | Paul Sokolovsky | |
| 2014-04-19 | modstruct: Initial implementation of struct.pack(). | Paul Sokolovsky | |
| 2014-04-18 | sequence: Fix glaring bug in sequence comparison. | Paul Sokolovsky | |
| 2014-04-17 | tests: Move gen_context to import tests, because it relies on import. | Damien George | |
| 2014-04-17 | objgenerator: Generator must execute in its defining lexical context. | Paul Sokolovsky | |
| I.e. with its own globals. So, just as for functions, we need to switch globals when resuming a generator. | |||
| 2014-04-17 | Merge pull request #504 from lurch/patch-4 | Damien George | |
| Allow the uPy used by run-tests to be overridden | |||
| 2014-04-17 | tests: Split out those tests requiring float and import. | Damien George | |
| 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. | |||
| 2014-04-17 | Changed the envvar name to MICROPY_MICROPYTHON | Andrew Scheller | |
| As discussed in #504 | |||
| 2014-04-17 | tests: Remove print('flush') from 2 tests, since stmhal now works. | Damien George | |
| Fixing the USB problem on stmhal now gets these 2 tests working. | |||
| 2014-04-16 | Stupid typo | Andrew Scheller | |
| 2014-04-16 | Allow the uPy used by run-tests to be overridden | Andrew Scheller | |
| with MICROPY_MP_PY envvar, in an analogous way to MICROPY_CPYTHON3 envvar. (the reason for this will be made clearer by a later PR) | |||
| 2014-04-16 | fix README to match contents of run-tests | Andrew Scheller | |
| 2014-04-16 | run-tests can now skip certain tests when run under Travis CI | Andrew Scheller | |
| See the `skip_travis_tests` variable. Fixes #495 (also tidied up usage of os.path.basename() function) | |||
| 2014-04-15 | 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 | |
| Would be good to test this, but need to find a way to optionally not running it when on travis. | |||
| 2014-04-15 | travis: Diff output, hopefully this works. | Damien George | |
| 2014-04-15 | 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-13 | tests: Add property test. | Damien George | |
| 2014-04-13 | tests: Make tests pass on pyboard. | Damien George | |
| 2014-04-13 | Make pyboard.py have its own exception; update run-tests for pyboard. | Damien George | |
| 2014-04-13 | Merge pull request #473 from pfalcon/list-extend-iter | Damien George | |
| objlist: Make .extend accept arbitrary iterable. | |||
| 2014-04-13 | py: Rename collections module to _collections. | Paul Sokolovsky | |
| 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. | |||
| 2014-04-13 | objlist: Make .extend accept arbitrary iterable. | Paul Sokolovsky | |
| 2014-04-12 | py: Make all LOAD_FAST ops check for unbound local. | Damien George | |
| 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. | |||
| 2014-04-12 | tests: Add some bytecode tests. | Damien George | |
| 2014-04-12 | builtinimport: Implement relative imports. | Paul Sokolovsky | |
| 2014-04-12 | builtinimport: Set __path__ attribute ASAP as it's clear we have a package. | Paul Sokolovsky | |
| This helps with handling "recursive" imports in sane manner, for example when foo/__init__.py has something like "from foo import submod". | |||
| 2014-04-12 | py: Remove useless implementations of NOT_EQUAL in binary_op's. | Damien George | |
| 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). | |||
| 2014-04-12 | py: Implement "from pkg import mod" variant of import. | Paul Sokolovsky | |
| 2014-04-11 | py, compiler: Allow lambda's to yield. | Damien George | |
