| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-12-24 | tests: Add run-tests-exp.py, simple MicroPython-based test runner. | Paul Sokolovsky | |
| This script is rewrite of run-tests-exp.sh, and tries to achieve self-hosted testsuite running in environments where neither CPython nor unix shell is available. As run-tests-exp.sh, it requires complete set of .exp files pre-generated with ./run-test --write-exp. | |||
| 2014-12-24 | stmhal: Enable ubinascii module, weak link to binascii. | Damien George | |
| 2014-12-23 | docs: Add mention about using USB charger when resetting the filesystem. | Dave Hylands | |
| It seems the Mac will happily wipe out at least some of the data on a freshly reset filesytem, if the filesystem was reset while plugged into the Mac. | |||
| 2014-12-23 | unix, windows: Add _os.system() call. | Paul Sokolovsky | |
| system() is the basic function to support automation of tasks, so have it available builtin, for example, for bootstrapping rest of micropython environment. | |||
| 2014-12-22 | docs: Make admonition for CPy-difference use "attention" class. | Damien George | |
| This renders it in yellow/orange box on RTD server. | |||
| 2014-12-22 | py: Reduce size of VM exception stack element by 1 machine word. | Damien George | |
| This optimisation reduces the VM exception stack element (mp_exc_stack_t) by 1 word, by using bit 1 of a pointer to store whether the opcode was a FINALLY or WITH opcode. This optimisation was pending, waiting for maturity of the exception handling code, which has now proven itself. Saves 1 machine word RAM for each exception (4->3 words per exception). Increases stmhal code by 4 bytes, and decreases unix x64 code by 32 bytes. | |||
| 2014-12-21 | py: Use str_to_int function in more places to reduce code size. | Damien George | |
| 2014-12-21 | py: Remove last uses of printf from compile; use proper SyntaxError. | Damien George | |
| 2014-12-21 | py: Move global/nonlocal decl code to compiler for proper SyntaxError. | Damien George | |
| This patch gives proper SyntaxError exceptions for bad global/nonlocal declarations. It also reduces code size: 304 bytes on unix x64, 132 bytes on stmhal. | |||
| 2014-12-21 | py: Fix iteration over map in 2 places. | Damien George | |
| 2014-12-21 | docs: Add RTD local_settings file, to add custom templates. | Damien George | |
| 2014-12-21 | docs: Add custom CSS file, with code for admonition. | Damien George | |
| 2014-12-21 | stmhal: gccollect.h is superfluous in many places. | Paul Sokolovsky | |
| 2014-12-21 | stmhal: Use gc_dump_info() function instead of adhoc code. | Paul Sokolovsky | |
| 2014-12-20 | stmhal: Include MICROPY_HAL_H only if defined. | Paul Sokolovsky | |
| Helps other ports. | |||
| 2014-12-20 | py: Remove unnecessary RULE_none and PN_none from parser. | Damien George | |
| 2014-12-20 | py: Add blank and ident flags to grammar rules to simplify parser. | Damien George | |
| This saves around 100 bytes code space on stmhal, more on unix. | |||
| 2014-12-20 | tools, pyboard.py: Write data to pyboard in chunks of 256 bytes. | Damien George | |
| This speeds up writes significantly. | |||
| 2014-12-20 | py: Save a few code bytes in parser; make vars local where possible. | Damien George | |
| 2014-12-20 | run-tests: Allow to run testuite against Windows build on Linux (using Wine). | Paul Sokolovsky | |
| Just adjust line-endings of micropython.exe output, the rest should be handled by Wine (automagically on properly configured distro). To run: MICROPY_MICROPYTHON=../windows/micropython.exe ./run-tests | |||
| 2014-12-20 | windows: Correctly interpret skipped tests, enable uhashlib and ubinascii | stijn | |
| 2014-12-19 | docs: Add CPy diff note for print_exception; embellish sys.platform. | Damien George | |
| 2014-12-19 | py: Add execfile function (from Python 2); enable in stmhal port. | Damien George | |
| Adds just 60 bytes to stmhal binary. Addresses issue #362. | |||
| 2014-12-19 | unix/windows: Make sure that process exit code is portable 8-bit value. | Paul Sokolovsky | |
| This fixes FORCED_EXIT internal flag leaking into Windows exit code. | |||
| 2014-12-18 | lib/libm: Add acosh, asinh, atanh, tan; get working with stmhal. | Damien George | |
| acoshf, asinhf, atanhf were added from musl. mathsincos.c was split up into its original, separate files (from newlibe-nano-2). tan was added. All of the important missing float functions are now implemented, and pyboard now passes tests/float/math_fun.py (finally!). | |||
| 2014-12-18 | tests: Get misc/print_exception and pyb/spi working on pyboard. | Damien George | |
| 2014-12-18 | tests: sha256: skip test if uhashlib module is not available. | Paul Sokolovsky | |
| 2014-12-18 | Fix leds.rst | Gregory | |
| N (mod 4) is 0..3 | |||
| 2014-12-17 | unix: Rename "time" module to "utime" to allow extensibility. | Paul Sokolovsky | |
| Name choosen per latest conventions and for compatibiity with stmhal port. | |||
| 2014-12-16 | docs: Define more clearly the behaviour of LED methods. | Damien George | |
| Addresses issue #1006. | |||
| 2014-12-16 | modffi: Support void (None) return value for Python callback functions. | Paul Sokolovsky | |
| 2014-12-15 | tests: Add testcase for ffi callbacks. | Paul Sokolovsky | |
| 2014-12-15 | modffi: 64-bit cleanness (fixes actual bug in callback arg handling). | Paul Sokolovsky | |
| 2014-12-14 | asmarm: Fix bug with encoding small negative ints using MVN instruction. | Paul Sokolovsky | |
| 2014-12-14 | unix: Enable Thumb2 and ARM emitters by default on corresponding archs. | Paul Sokolovsky | |
| 2014-12-13 | run-tests: Skip native/viper tests based on prefix. | Paul Sokolovsky | |
| Otherwise, new tests are forgotten to be added to explicit lists. Issue found running on Debian/ARM. | |||
| 2014-12-12 | py: Fix optimised for-loop compiler so it follows proper semantics. | Damien George | |
| You can now assign to the range end variable and the for-loop still works correctly. This fully addresses issue #565. Also fixed a bug with the stack not being fully popped when breaking out of an optimised for-loop (and it's actually impossible to write a test for this case!). | |||
| 2014-12-12 | py: Fix label printing in showbc; print sp in vm trace. | Damien George | |
| 2014-12-12 | run-tests: Reset MICROPYPATH, to make sure tests use only builtin modules. | Paul Sokolovsky | |
| 2014-12-12 | run-tests: PEP8 fix. | Paul Sokolovsky | |
| 2014-12-12 | tests: Activate recursive_data.py test, now that io.StringIO is available. | Paul Sokolovsky | |
| 2014-12-11 | tests: Add test for semantics of for-loop that optimisation can break. | Damien George | |
| 2014-12-11 | py: Fix a semantic issue with range optimisation. | Damien George | |
| Now you can assign to the range variable within the for loop and it will still work. Partially addresses issue #565. | |||
| 2014-12-11 | tests: Disable print_exception test when using native emitter. | Damien George | |
| 2014-12-11 | tests: Fix print_exception test and re-enable it on Travis CI. | Damien George | |
| Issue was with uPy: on local machine with micropython-lib installed, io module is available. Not the case on Travis CI, where only _io module is available in uPy. | |||
| 2014-12-11 | run-tests: Skip print_exception.py on TravisCI, as it irreproducibly fails. | Paul Sokolovsky | |
| TODO: Figure out what's wrong on Travis. | |||
| 2014-12-10 | py: Tidy up a few function declarations. | Damien George | |
| 2014-12-10 | py: Remove static from definition of pfenv_printf. | Damien George | |
| It's used by stmhal, but not unix. | |||
| 2014-12-10 | py: Make functions static where appropriate. | Damien George | |
| 2014-12-10 | unix: add unlink function to os module | Nikita Nazarenko | |
