- May 03, 2014
-
-
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/.
-
- Apr 23, 2014
-
-
Paul Sokolovsky authored
-
- Mar 30, 2014
-
-
Paul Sokolovsky authored
Iterators and ducktype objects can now be arguments of yield from.
-
Damien George authored
-
- Mar 29, 2014
-
-
Paul Sokolovsky authored
Required to reraise correct exceptions in except block, regardless if more try blocks with active exceptions happen in the same except block. P.S. This "automagic reraise" appears to be quite wasteful feature of Python - we need to save pending exception just in case it *might* be reraised. Instead, programmer could explcitly capture exception to a variable using "except ... as var", and reraise that. So, consider disabling argless raise support as an optimization.
-
- Mar 27, 2014
-
-
Damien George authored
Rationale: setting up the stack (state for locals and exceptions) is really part of the "code", it's the prelude of the function. For example, native code adjusts the stack pointer on entry to the function. Native code doesn't need to know n_state for any other reason. So putting the state size in the bytecode prelude is sensible. It reduced ROM usage on STM by about 30 bytes :) And makes it easier to pass information about the bytecode between functions.
-
- Mar 23, 2014
-
-
Paul Sokolovsky authored
Based on issues raised during recent review and inconsistency of different implementations.
-
- Mar 22, 2014
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This is required to properly handle exceptions across yields.
-
- Feb 15, 2014
-
-
Damien George authored
Addresses issue #290, and hopefully sets up things to allow generators throwing exceptions, etc.
-
- Feb 01, 2014
-
-
Damien George authored
-
- 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.
-
- Jan 18, 2014
-
-
Damien George authored
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
-
- Jan 06, 2014
- Dec 21, 2013
-
-
Damien authored
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
-
- Dec 11, 2013
-
-
Damien authored
-
- Dec 10, 2013
-
-
Damien authored
-
- Nov 05, 2013
- Oct 16, 2013
-
-
Damien authored
-
- Oct 10, 2013
-
-
Damien authored
-
- Oct 09, 2013
-
-
Damien authored
-
- Oct 05, 2013
-
-
Damien authored
-
- Oct 04, 2013
-
-
Damien authored
-