- 02 Apr, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
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.
-
- 31 Mar, 2014 3 commits
-
-
Damien George authored
Don't store final, failing value to the loop variable. This fix also makes for .. range a bit more efficient, as it uses less store/load pairs for the loop variable.
-
Damien George authored
These are default arguments after a bare *.
-
Damien George authored
In preparation for implementing default keyword arguments.
-
- 30 Mar, 2014 4 commits
-
-
Paul Sokolovsky authored
The way it is, just crashes app. And optimizing to "raise ZeroDivisionError" is probably too much.
-
Damien George authored
Eg class A(): pass would fail an assertion.
-
Damien George authored
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
-
Paul Sokolovsky authored
-
- 29 Mar, 2014 2 commits
-
-
Damien George authored
Partly (very partly!) addresses issue #386. Most importantly, at the REPL command line, each invocation does not now lead to increased memory usage (unless you define a function/lambda).
-
Paul Sokolovsky authored
-
- 27 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 26 Mar, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-
- 22 Mar, 2014 3 commits
-
-
Rachel Dowdall authored
-
Rachel Dowdall authored
-
Rachel Dowdall authored
Fixed modulo operator on ints and mp ints to agree with python. Added intdivmod.c and tests/basics/modulo.py.
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 03 Mar, 2014 1 commit
-
-
Damien George authored
Checks for non-default args following default args, and errors out. Addresses issue #328.
-
- 26 Feb, 2014 1 commit
-
-
Damien George authored
-
- 22 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
Based on suggestion by @dpgeorge at https://github.com/micropython/micropython/pull/313
-
- 21 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
Specifically, VM's small ints are 31 bit, while parser's only 28. There's already MP_OBJ_FITS_SMALL_INT(), so, for clarity, rename MP_FIT_SMALL_INT() to MP_PARSE_FITS_SMALL_INT().
-
- 20 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 15 Feb, 2014 1 commit
-
-
Damien George authored
-
- 12 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 10 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 06 Feb, 2014 1 commit
-
-
Damien George authored
-
- 05 Feb, 2014 1 commit
-
-
Damien George authored
-
- 01 Feb, 2014 4 commits
-
-
Damien George authored
IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode.
-
Damien George authored
-
Damien George authored
Still todo: break/continue from within the finally block itself.
-
Paul Sokolovsky authored
TODO: Decide if we really need separate bytecode for creating functions with default arguments - we would need same for closures, then there're keywords arguments too. Having all combinations is a small exponential explosion, likely we need just 2 cases - simplest (no defaults, no kw), and full - defaults & kw.
-
- 29 Jan, 2014 1 commit
-
-
Damien George authored
LOAD_METHOD bug was: emitbc did not correctly calculate the amount of stack usage for a LOAD_METHOD operation. small int bug was: int was being used to pass small ints, when it should have been machine_int_t.
-
- 28 Jan, 2014 1 commit
-
-
Damien George authored
-
- 24 Jan, 2014 2 commits
-
-
Damien George authored
There can be multiple emitters allocated during compile (eg byte code and native).
-
Paul Sokolovsky authored
-
- 23 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Addresses Issue #207.
-