- Jan 19, 2014
-
-
Damien George authored
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
-
Damien George authored
-
Damien George authored
-
- Jan 18, 2014
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Damien George authored
Add lean ("raw") socket module.
-
Damien George authored
Add skeleton implementation of array.array and bytearray.
-
Damien George authored
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
Now searches both locals_dict and methods. Partly addresses Issue #145.
-
Paul Sokolovsky authored
So far, only storage, initialization, repr() and buffer protocol is implemented - alredy suitable for passing binary data around.
-
Paul Sokolovsky authored
-
Damien George authored
Now working for class-defined methods: __getitem__, __setitem__, __add__, __sub__. Easy to add others.
-
Damien George authored
Add store_item() virtual method to type to implement container[index] = val
-
Damien George authored
-
Paul Sokolovsky authored
mp_obj_int_get() can be used when just full resolution of C machine_int_t is required (returns truncated value of long int). mp_obj_int_get_checked() will throw exception if Python int value not representable in machine_int_t.
-
Damien George authored
Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- Jan 17, 2014
-
-
Damien George authored
Python long int implementation using C long long
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- Jan 16, 2014
-
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Damien George authored
Improve compatibility of examples with CPython (+ interp compatibility too)
-
Paul Sokolovsky authored
Implicit "micropython" module contains (at least) codegeneration decorators. Make it explicit, so an app could have "import micropython". On MicroPython, that will be no-op. On CPython, that will give a chance to have a module with placeholder decorators.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Delay between frames; run more generations.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Per Python3 io module semantics.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
That at least makes stuff like "{:x}".format(1) to produce not completely broken output.
-
- Jan 15, 2014
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Conflicts: py/objint.c unix-cpy/Makefile unix/Makefile
-
Damien George authored
Conflicts: tests/basics/tests/exception1.py
-