summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* tests: Make rge-sm.py use less memory (integration step increased).Damien George2014-04-04
| | | | | In addition to memory allocation failure, other problem was that 10**17 was overflowing. Now passes.
* py: This time, real proper overflow checking of small int power.Damien George2014-04-04
| | | | Previous overflow test was inadequate.
* py: Add m_malloc_fail function to handle memory allocation error.Damien George2014-04-04
| | | | A malloc/realloc fail now throws MemoryError.
* tests/file-with: Add testcase which failed for @dpgeorge.Paul Sokolovsky2014-04-04
| | | | Works on x86.
* py: Handle small int power overflow correctly.Damien George2014-04-04
|
* Changes to get unix/ port compiling on Cygwin.Damien George2014-04-03
|
* stmhal: Add home/end cursor support in readline.Damien George2014-04-03
| | | | | | Home/end work in picocom and screen (different codes in those 2 programs). Also, CTRL-A (for non-empty liny) and CTRL-E act as home/end.
* Merge pull request #419 from pfalcon/stmhal-file-streamsDamien George2014-04-03
|\ | | | | stmhal: Reimplement file support using stream protocol API.
| * stmhal: Reimplement file support using stream protocol API.Paul Sokolovsky2014-04-03
| | | | | | | | | | This adds readline(), readall(), etc. methods. Also other fixes to make Python API compliant and "with" support.
* | tests: Allow to run tests on pyboard.Damien George2014-04-03
| | | | | | | | | | | | To run the tests on the pyboard you need to set the "test_on_pyboard" variable to "True", and also have tools/pyboard.py available for import (easiest is to symlink to it).
* | tools: Improve reading back from pyboard.Damien George2014-04-03
| |
* | stmhal: On soft reset, if in raw REPL mode, don't run main.py.Damien George2014-04-03
| |
* | tools: pyboard.py can now execute a file remotely!Damien George2014-04-03
| |
* | stmhal: Fix raw REPL so that it passes through more ASCII chars.Damien George2014-04-03
| |
* | stmhal: Add powf, logf, log2f, log10f.Damien George2014-04-03
| |
* | stmhal: #undef log2f if it's defined.Damien George2014-04-03
| |
* | README: ARM Linux is supported.Paul Sokolovsky2014-04-03
|/ | | | | Retested again on Ubuntu 12.04 armhf running in chroot on Samsung ARM Chromebook (Cortex-A15).
* run-tests: Allow to override python3 command to use via environment var.Paul Sokolovsky2014-04-03
|
* unix file: Implement context manager protocol (for "with" statement).Paul Sokolovsky2014-04-03
|
* py: Add "io" module.Paul Sokolovsky2014-04-03
| | | | | | So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed.
* py: More robust int conversion and overflow checking.Damien George2014-04-03
|
* Merge pull request #417 from pfalcon/unix-enable-gcDamien George2014-04-02
|\ | | | | unix: Enable GC.
| * unix: Enable GC.Paul Sokolovsky2014-04-02
| | | | | | | | | | GC support for "unix" port was implemented some time ago, but still not enabled.
* | Merge branch 'fix-format-int' of github.com:dhylands/micropython into ↵Damien George2014-04-02
|\ \ | | | | | | | | | | | | | | | | | | dhylands-fix-format-int Conflicts: py/objstr.c
| * | Fix str.format to work with {:f/g/e} and intsDave Hylands2014-04-02
| |/ | | | | | | Also fix objstr.c to compile when floats disabled.
* | py: Fix regress for printing of floats and #if.Damien George2014-04-02
| | | | | | | | | | Also change formating modifier in test script (it still passes with original format though).
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-04-02
|\|
| * tests/string-format: Add test for formatting ints with float format.Paul Sokolovsky2014-04-02
| | | | | | | | Fail currently.
| * gc: Uses uint defined in misc.h.Paul Sokolovsky2014-04-02
| |
| * unix: Use argv[0] for command name in usage.Paul Sokolovsky2014-04-02
| |
| * unix: Support #if-able impl-specific cmdline options.Paul Sokolovsky2014-04-02
| | | | | | | | For example, we still build w/o GC enabled, so cannot really set heap size.
| * unix: Properly recognize and report when script on cmdline not found.Paul Sokolovsky2014-04-02
| | | | | | | | Previosuly just silently exited.
* | stmhal: Fix servo object; add fpclassify to math functions.Damien George2014-04-02
|/
* py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h.Damien George2014-04-02
|
* py: Fix up so that it can compile without float.Damien George2014-04-02
|
* py: Enable a jump optimisation in the compiler.Damien George2014-04-02
|
* py: Move to Python 3.4.0 compatibility.Damien George2014-04-02
| | | | | | | | | | | | | Very little has changed. In Python 3.4 they removed the opcode STORE_LOCALS, but in Micro Python we only ever used this for CPython compatibility, so it was a trivial thing to remove. It also allowed to clean up some dead code (eg the 0xdeadbeef in class construction), and now class builders use 1 less stack word. Python 3.4.0 introduced the LOAD_CLASSDEREF opcode, which I have not yet understood. Still, all tests (apart from bytecode test) still pass. Bytecode tests needs some more attention, but they are not that important anymore.
* Change test scripts to use python3; bytecode tests use python3.4.Damien George2014-04-02
| | | | | | | | | I upgraded to Python 3.4.0, so needed to make these changes. Hopefully the tests still run with Python 3.3.x (the scripts use python3 so are agnostic as to the subversion). Bytecode tests are tightly coupled to the Python version, and now some fail against Python 3.4.
* Merge branch 'pip-micropy' of github.com:pfalcon/micropython into ↵Damien George2014-04-02
|\ | | | | | | pfalcon-pip-micropy
| * tools: Add pip-micropython to install packages in MicroPython-friendly way.Paul Sokolovsky2014-04-02
| |
* | stmhal: Add timer module; move servo PWM from TIM2 to TIM5.Damien George2014-04-02
| | | | | | | | | | As per issue #257, servo is better on TIM5 because TIM2 is connected to more GPIO.
* | stmhal: Add backspace key to readline (along with delete key).Damien George2014-04-02
| |
* | Add more tests.Damien George2014-04-02
| |
* | py: Factor out static/class method unwrapping code; add tests.Damien George2014-04-02
| |
* | Add a test.Damien George2014-04-02
| |
* | py: Implement floating point power binop.Damien George2014-04-02
| |
* | py: Allow multiple of str/list/tuple on left by an integer.Damien George2014-04-02
|/
* py: Add support for sep and end keywords in print.Damien George2014-04-02
|
* py: Fix math.{ceil,floor,trunc} to return int.Damien George2014-04-01
|
* py: Make pfenv.c conform to code conventions.Damien George2014-04-01
|