- 12 Mar, 2014 1 commit
-
-
Damien George authored
If operation will overflow, a multi-precision integer is created.
-
- 08 Mar, 2014 1 commit
-
-
Damien George authored
mp_module_obj_t can now be put in ROM. Configuration of float type is now similar to longint: can now choose none, float or double as the implementation. math module has basic math functions. For STM port, these are not yet implemented (they are just stub functions).
-
- 03 Mar, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
I.e. as replacement of MP_OBJ_IS_TYPE(), which takes into account subclassing.
-
- 26 Feb, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
Don't need to wrap bitfields in their own struct. Compiler does the correct thing without it.
-
Damien George authored
-
- 22 Feb, 2014 1 commit
-
-
Damien George authored
Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).
-
- 16 Feb, 2014 2 commits
-
-
Paul Sokolovsky authored
For this, record argument names along with each bytecode function. The code still includes extensive debug logging support so far.
-
Damien George authored
Addresses issue #295.
-
- 15 Feb, 2014 2 commits
-
-
Damien George authored
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
-
Damien George authored
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
-
- 12 Feb, 2014 1 commit
-
-
Damien George authored
-
- 10 Feb, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 08 Feb, 2014 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Unlike CPython socket, microsocket object already implements stream protocol (read/write methods), so makefile() just returns object itself. TODO: this doesn't take care of arguments CPython's makefile() may accept.
-
Damien George authored
Can't decide which is better for string type, char or byte pointer. Changing to char removes a few casts. Really need to do proper unicode.
-
- 06 Feb, 2014 1 commit
-
-
Damien George authored
-
- 05 Feb, 2014 1 commit
-
-
Damien George authored
-
- 02 Feb, 2014 4 commits
-
-
Paul Sokolovsky authored
Structure is back to expected 16 bytes.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Takes slice object and sequence length and computes subsequence indexes for case of slice step=1.
-
- 01 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
TODO: Decide if we really need separate bytecode for creating functions with default arguments - we would need same for closures, then there're keywords arguments too. Having all combinations is a small exponential explosion, likely we need just 2 cases - simplest (no defaults, no kw), and full - defaults & kw.
-
- 29 Jan, 2014 1 commit
-
-
Damien George authored
We still have FAST_[0,1,2] byte codes, but they now just access the fastn array (before they had special local variables). It's now simpler, a bit faster, and uses a bit less stack space (on STM at least, which is most important). The only reason now to keep FAST_[0,1,2] byte codes is for compressed byte code size.
-
- 28 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
This is special feature for FFI.
-
Paul Sokolovsky authored
-
- 26 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 25 Jan, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Addresses Issue #203.
-
- 24 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
This reuses as much str implementation as possible, from this we can make them more separate as needed.
-
- 22 Jan, 2014 1 commit
-
-
Damien George authored
-
- 21 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 20 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Useful as getiter method for objects which are their own iterators, etc.
-
- 19 Jan, 2014 3 commits
-
-
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
-