- 23 Oct, 2014 1 commit
-
-
Damien George authored
-
- 22 Oct, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
It's purpose is for internal errors that are not catastrophic (ie not as bad as RuntimeError). Since we don't use it, we don't need it.
-
- 13 Oct, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Oct, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
With this patch a port can enable module weak link support and provide a dict of qstr->module mapping. This mapping is looked up only if an import fails to find the requested module in the filesystem. This allows to have the builtin module named, eg, usocket, and provide a weak link of "socket" to the same module, but this weak link can be overridden if a file by the name "socket.py" is found in the import path.
-
- 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.
-
- 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
-
- 16 Aug, 2014 1 commit
-
-
Damien George authored
Also fix unix port so that SystemExit with no arg exits with value 0.
-
- 12 Aug, 2014 2 commits
-
-
Paul Sokolovsky 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).
-
- 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.
-
- 27 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
array.array and bytearray share big deal of code, so to get real savings, both need to be disabled.
-
- 21 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
It defines types used by all other headers. Fixes #691.
-
- 20 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
One thing is wanting to do 1 / 2 and get something else but 0, and quite another - doing rocket science ;-).
-
- 19 Jun, 2014 1 commit
-
-
Emmanuel Blot authored
-
- 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).
-
- 03 Jun, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 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.
-
- 24 May, 2014 1 commit
-
-
Damien George authored
Now of the form MICROPY_PY_*. See issue #35.
-
- 21 May, 2014 1 commit
-
-
Damien George authored
MP_ALLOC_* -> MICROPY_ALLOC_* MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX MICROPY_EXTRA_* -> MICROPY_PORT_* See issue #35.
-
- 11 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 10 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Tired of patching CPython stdlib for it.
-
- 05 May, 2014 1 commit
-
-
Paul Sokolovsky 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/.
-
- 26 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 17 Apr, 2014 2 commits
-
-
Damien George authored
Addresses issue #487.
-
Damien George authored
Not all functions implemented. Not enabled on pyboard.
-
- 15 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
A one-liner, added especially for @pfalcon :)
-
- 13 Apr, 2014 3 commits
-
-
Damien George authored
Enabled by MICROPY_ENABLE_PROPERTY.
-
Damien George authored
-
Paul Sokolovsky authored
We're not going to implement all the plethora of types in there in C. Funnily, CPython implements defaultdict in C, and namedtuple in Python.
-