- 24 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 23 Jan, 2014 8 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
Fixes segfault on callable("string").
-
Paul Sokolovsky authored
-
Damien George authored
Addresses Issue #207.
-
Damien George authored
-
- 22 Jan, 2014 6 commits
-
-
Damien George authored
STM port crashes without this re-init. There should not be any state in the core py/ code that relies on pre-initialised data.
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
Addresses Issue #199.
-
- 21 Jan, 2014 7 commits
-
-
Damien George authored
Also fixes a bug in the for-in-range optimiser. I hope to remove break and continue byte codes in the future and just use jump (if possible).
-
Dave Hylands authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
Paul Sokolovsky authored
Note that splitting by explicit string is not implemented so far.
-
Paul Sokolovsky authored
Also, support negative indexes.
-
- 20 Jan, 2014 11 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Currently, MicroPython strings are mix between CPython byte and unicode strings. So, conversion is null so far. This dummy implementation is intended for compatibility with CPython (so, same code can run on both).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Uses stream_unbuffered_readline underline.
-
Paul Sokolovsky authored
Useful as getiter method for objects which are their own iterators, etc.
-
Paul Sokolovsky authored
-
Damien George authored
-
Paul Sokolovsky authored
These are micropython.mem_total(), .mem_current(), .mem_peak(). These are 3 individual functions with simple scalar return value to make sure that calls to these functions themselves have minimal (hopefully zero) impact on memory allocation.
-
- 19 Jan, 2014 6 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
In Python, importing module several times returns same underlying module object. This also fixes import statement handling for builtin modules. There're still issues: 1. CPython exposes set of loaded modules as sys.modules, we may want to do that either. 2. Builtin modules are implicitly imported, which is not really correct. We should separate registering a (builtin) module and importing a module. CPython keeps builtin module names in sys.builtin_module_names .
-
Damien George authored
-
Damien George authored
-