- 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 4 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.
-
Paul Sokolovsky authored
-
- 10 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
Only calcsize() and unpack() functions provided so far, for little-endian byte order. Format strings don't support repition spec (like "2b3i"). Unfortunately, dealing with all the various binary type sizes and alignments will lead to quite a bloated "binary" helper functions - if optimizing for speed. Need to think if using dynamic parametrized algos makes more sense.
-
- 08 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 05 Apr, 2014 3 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
Finishes addressing issue #424. In the end this was a very neat refactor that now makes things a lot more consistent across the py code base. It allowed some simplifications in certain places, now that everything is a dict object. Also converted builtins tables to dictionaries. This will be useful when we need to turn builtins into a proper module.
-
Paul Sokolovsky authored
That's how CPython has it, in particular, "import __main__" should work.
-
- 03 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed.
-
- 29 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Addresses issue #388.
-
- 27 Mar, 2014 1 commit
-
-
Damien George authored
Only exceptions that are actually used are left prefedined. Hierarchy is still there, and removed exceptions are just commented out.
-
- 26 Mar, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 25 Mar, 2014 2 commits
-
-
Damien George authored
They still exist in commented-out form in objexcept.c if they are ever needed.
-
Damien George authored
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
-