aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-12-21py: Use str_to_int function in more places to reduce code size.Damien George
2014-12-21py: Remove last uses of printf from compile; use proper SyntaxError.Damien George
2014-12-21py: 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-21py: Fix iteration over map in 2 places.Damien George
2014-12-21docs: Add RTD local_settings file, to add custom templates.Damien George
2014-12-21docs: Add custom CSS file, with code for admonition.Damien George
2014-12-21stmhal: gccollect.h is superfluous in many places.Paul Sokolovsky
2014-12-21stmhal: Use gc_dump_info() function instead of adhoc code.Paul Sokolovsky
2014-12-20stmhal: Include MICROPY_HAL_H only if defined.Paul Sokolovsky
Helps other ports.
2014-12-20py: Remove unnecessary RULE_none and PN_none from parser.Damien George
2014-12-20py: 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-20tools, pyboard.py: Write data to pyboard in chunks of 256 bytes.Damien George
This speeds up writes significantly.
2014-12-20py: Save a few code bytes in parser; make vars local where possible.Damien George
2014-12-20run-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-20windows: Correctly interpret skipped tests, enable uhashlib and ubinasciistijn
2014-12-19docs: Add CPy diff note for print_exception; embellish sys.platform.Damien George
2014-12-19py: Add execfile function (from Python 2); enable in stmhal port.Damien George
Adds just 60 bytes to stmhal binary. Addresses issue #362.
2014-12-19unix/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-18lib/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-18tests: Get misc/print_exception and pyb/spi working on pyboard.Damien George
2014-12-18tests: sha256: skip test if uhashlib module is not available.Paul Sokolovsky
2014-12-18Fix leds.rstGregory
N (mod 4) is 0..3
2014-12-17unix: Rename "time" module to "utime" to allow extensibility.Paul Sokolovsky
Name choosen per latest conventions and for compatibiity with stmhal port.
2014-12-16docs: Define more clearly the behaviour of LED methods.Damien George
Addresses issue #1006.
2014-12-16modffi: Support void (None) return value for Python callback functions.Paul Sokolovsky
2014-12-15tests: Add testcase for ffi callbacks.Paul Sokolovsky
2014-12-15modffi: 64-bit cleanness (fixes actual bug in callback arg handling).Paul Sokolovsky
2014-12-14asmarm: Fix bug with encoding small negative ints using MVN instruction.Paul Sokolovsky
2014-12-14unix: Enable Thumb2 and ARM emitters by default on corresponding archs.Paul Sokolovsky
2014-12-13run-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-12py: 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-12py: Fix label printing in showbc; print sp in vm trace.Damien George
2014-12-12run-tests: Reset MICROPYPATH, to make sure tests use only builtin modules.Paul Sokolovsky
2014-12-12run-tests: PEP8 fix.Paul Sokolovsky
2014-12-12tests: Activate recursive_data.py test, now that io.StringIO is available.Paul Sokolovsky
2014-12-11tests: Add test for semantics of for-loop that optimisation can break.Damien George
2014-12-11py: 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-11tests: Disable print_exception test when using native emitter.Damien George
2014-12-11tests: 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-11run-tests: Skip print_exception.py on TravisCI, as it irreproducibly fails.Paul Sokolovsky
TODO: Figure out what's wrong on Travis.
2014-12-10py: Tidy up a few function declarations.Damien George
2014-12-10py: Remove static from definition of pfenv_printf.Damien George
It's used by stmhal, but not unix.
2014-12-10py: Make functions static where appropriate.Damien George
2014-12-10unix: add unlink function to os moduleNikita Nazarenko
2014-12-10tests: Fix print_exception.py to work on Travis CI.Damien George
2014-12-10tests: Add test for print_exception() function.Paul Sokolovsky
2014-12-10docs: Add sys.print_exception().Paul Sokolovsky
2014-12-10py: Fix function type: () -> (void).Damien George
2014-12-09py: Allow builtins to be overridden.Damien George
This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS) which, when enabled, allows to override all names within the builtins module. A builtins override dict is created the first time the user assigns to a name in the builtins model, and then that dict is searched first on subsequent lookups. Note that this implementation doesn't allow deleting of names. This patch also does some refactoring of builtins code, creating the modbuiltins.c file. Addresses issue #959.
2014-12-09drivers, nrf24: Nonblocking send now uses send_start and send_done.adminpete