- 29 Aug, 2014 2 commits
-
-
Damien George authored
Addressing issue #50, still some way to go yet.
-
Damien George authored
Found this bug by running unix/ tests with DEBUG=1 enabled when compiling.
-
- 27 Aug, 2014 2 commits
-
-
Damien George authored
Saves ROM (16 on stmhal, 240 on 64-bit unix) and should be quicker since there is 1 less branch.
-
Dave Hylands authored
-
- 24 Aug, 2014 1 commit
-
-
Damien George authored
Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820.
-
- 15 Aug, 2014 1 commit
-
-
Damien George authored
Viper functions can now be annotated with the type of their arguments and return value. Eg: @micropython.viper def f(x:int) -> int: return x + 1
-
- 12 Aug, 2014 1 commit
-
-
Damien George authored
reversed function now implemented, and works for tuple, list, str, bytes and user objects with __len__ and __getitem__. Renamed mp_builtin_len to mp_obj_len to make it publically available (eg for reversed).
-
- 10 Aug, 2014 1 commit
-
-
Paul Sokolovsky authored
This happens for example for zero-size arrays. As .get_buffer() method now has explicit return value, it's enough to distinguish success vs failure of getting buffer.
-
- 31 Jul, 2014 2 commits
-
-
Damien George authored
Addresses issue #724.
-
Damien George authored
This allows to create str's with a smaller length than initially asked for.
-
- 27 Jul, 2014 1 commit
-
-
Damien George authored
-
- 25 Jul, 2014 1 commit
-
-
Dave Hylands authored
The user code should call micropython.alloc_emergency_exception_buf(size) where size is the size of the buffer used to print the argument passed to the exception. With the test code from #732, and a call to micropython.alloc_emergenncy_exception_buf(100) the following error is now printed: ```python >>> import heartbeat_irq Uncaught exception in Timer(4) interrupt handler Traceback (most recent call last): File "0://heartbeat_irq.py", line 14, in heartbeat_cb NameError: name 'led' is not defined ```
-
- 03 Jul, 2014 1 commit
-
-
Damien George authored
See discussion in issue #50.
-
- 13 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
This will allow roughly the same behavior as Python3 for non-ASCII strings, for example, print("<phrase in non-Latin script>".split()) will print list of words, not weird hex dump (like Python2 behaves). (Of course, that it will print list of words, if there're "words" in that phrase at all, separated by ASCII-compatible whitespace; that surely won't apply to every human language in existence).
-
- 11 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 07 Jun, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Should finish addressing issue #524.
-
- 05 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
Also, make sure that args to "*" format specifiers are bounds-checked properly and don't lead for segfaults in case of mismatch.
-
- 01 Jun, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion.
-
- 28 May, 2014 2 commits
-
-
Damien George authored
Also unifies use of SMALL_INT_FITS macro across parser and runtime.
-
Damien George authored
Addresses issue #627.
-
- 25 May, 2014 3 commits
-
-
Damien George authored
This removes need for some casts (at least, more than it adds need for new casts!).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 24 May, 2014 3 commits
-
-
Paul Sokolovsky authored
This means that complete slice operations are supported for lists (but not for bytearray's and array.array's).
-
Paul Sokolovsky authored
Older int-only encoding is not expressive enough to support arbitrary slice assignment operations.
-
Damien George authored
Addresses issue #598.
-
- 21 May, 2014 1 commit
-
-
Damien George authored
See issue #608 for justification.
-
- 17 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 15 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Done in generalized manner, allowing any stream class to be specified as working with bytes.
-
- 11 May, 2014 2 commits
-
-
Damien George authored
Likely there are other functions that should be renamed, but this is a start.
-
Paul Sokolovsky authored
Two things are handled here: allow to compare native subtypes of tuple, e.g. namedtuple (TODO: should compare type too, currently compared duck-typedly by content). Secondly, allow user sunclasses of tuples (and its subtypes) be compared either. "Magic" I did previously in objtype.c covers only one argument (lhs is many), so we're in trouble when lhs is native type - there's no other option besides handling rhs in special manner. Fortunately, this patch outlines approach with fast path for native types.
-
- 10 May, 2014 5 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Slice value to assign can be only a list so far too.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Tired of patching CPython stdlib for it.
-
Damien George authored
-
- 07 May, 2014 1 commit
-
-
Damien George authored
-
- 03 May, 2014 1 commit
-
-
Damien George authored
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
-