- 13 Oct, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Oct, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 11 Oct, 2014 1 commit
-
-
- 30 Sep, 2014 1 commit
-
-
Damien George authored
In CPython IOError (and EnvironmentError) is deprecated and aliased to OSError. All modules that used to raise IOError now raise OSError (or a derived exception). In Micro Python we never used IOError (except 1 place, incorrectly) and so don't need to keep it. See http://legacy.python.org/dev/peps/pep-3151/ for background.
-
- 29 Sep, 2014 1 commit
-
-
Damien George authored
Viper can now do the following: def store(p:ptr8, c:int): p[0] = c This does a store of c to the memory pointed to by p using a machine instructions inline in the code.
-
- 21 Sep, 2014 1 commit
-
-
Damien George authored
-
- 17 Sep, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both.
-
- 07 Sep, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 06 Sep, 2014 1 commit
-
-
Damien George authored
-
- 27 Aug, 2014 1 commit
-
-
Fabian Vogt authored
-
- 26 Aug, 2014 1 commit
-
-
Damien George authored
Addresses issue #827.
-
- 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 4 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Also disable gc module on bare-arm port.
-
Damien George authored
-
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).
-
- 28 Jul, 2014 1 commit
-
-
Paul Sokolovsky 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 ```
-
- 19 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
And not system printf(), like it was before. For this, move pfenv_printf() from stmhal port to py/.
-
- 10 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 09 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.
-
- 03 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
Implementing it as a static constant is a bit peculiar and require cooperation from long int implementation.
-
- 25 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
Return free/allocated memory on GC heap.
-
- 11 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
Functionality we provide in builtin io module is fairly minimal. Some code, including CPython stdlib, depends on more functionality. So, there's a choice to either implement it in C, or move it _io, and let implement other functionality in Python. 2nd choice is pursued. This setup matches CPython too (_io is builtin, io is Python-level).
-
- 07 Jun, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Ports which wants to have it, should define MICROPY_PY_SYS_PLATFORM to a string value they need.
-
- 01 Jun, 2014 1 commit
-
-
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.
-
- 31 May, 2014 1 commit
-
-
Kim Bauters authored
-
- 24 May, 2014 3 commits
-
-
Damien George authored
Addresses issue #598.
-
Damien George authored
Now of the form MICROPY_PY_*. See issue #35.
-
Paul Sokolovsky authored
-
- 19 May, 2014 2 commits
-
-
Paul Sokolovsky authored
io.FileIO is binary I/O, ans actually optional. Default file type is io.TextIOWrapper, which provides str results. CPython3 explicitly describes io.TextIOWrapper as buffered I/O, but we don't have buffering support yet anyway.
-
Paul Sokolovsky authored
Now schedule is: for native types, we call ->make_new() C-level method, which should perform actions of __new__ and __init__ (note that this is not compliant, but is efficient), but for user types, __new__ and __init__ are called as expected. Also, make sure we convert scalar attribute value to a bound-pair tight in mp_obj_class_lookup() method, which avoids converting it again and again in its callers.
-
- 13 May, 2014 1 commit
-
-
Paul Sokolovsky authored
sep=None is TODO.
-
- 11 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 10 May, 2014 3 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Tired of patching CPython stdlib for it.
-