- 02 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Specifically, nlr.h does.
-
- 18 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
Test usecase I used is print(time.time()) and print(time.time() - time.time()). On Linux/Glibc they now give the same output as CPython 3.3. Specifically, time.time() gives non-exponential output with 7 decimal digits, and subtraction gives exponential output e-06/e-07.
-
- 17 Apr, 2014 1 commit
-
-
Damien George authored
Also make consistent use of MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL. This helps a lot in debugging and understanding of function API.
-
- 13 Apr, 2014 1 commit
-
-
Damien George authored
-
- 11 Apr, 2014 1 commit
-
-
Damien George authored
Addresses issue #462.
-
- 10 Apr, 2014 1 commit
-
-
Damien George authored
-
- 05 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
This does not affect code size or performance when debugging turned off. To address issue #420.
-
- 02 Apr, 2014 1 commit
-
-
Damien George authored
-
- 30 Mar, 2014 4 commits
-
-
Paul Sokolovsky authored
TODO: Likely doesn't match Python semantics for negative numbers.
-
Paul Sokolovsky authored
This matches CPython behavior and hopefully can be treated as general Python semantics.
-
Paul Sokolovsky authored
-
Damien George authored
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
-
- 21 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 20 Mar, 2014 1 commit
-
-
Rachel Dowdall authored
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 12 Mar, 2014 1 commit
-
-
Damien George authored
If operation will overflow, a multi-precision integer is created.
-
- 10 Mar, 2014 2 commits
-
-
Damien George authored
MICROPY_ENABLE_FLOAT is automatically set in mpconfig.h if MICROPY_FLOAT_IMPL is set to a non-zero value.
-
Dave Hylands authored
-
- 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).
-
- 22 Feb, 2014 1 commit
-
-
Damien George authored
-
- 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 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
Some tools do not support local/static symbols (one example is GNU ld map file). Exposing all functions will allow to do detailed size comparisons, etc. Also, added bunch of statics where they were missing, and replaced few identity functions with global mp_identity().
-
- 01 Feb, 2014 1 commit
-
-
Damien George authored
IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode.
-
- 30 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
__bool__() and __len__() are just the same as __neg__() or __invert__(), and require efficient dispatching implementation (not requiring search/lookup). type->unary_op() is just the right choice for this short of adding standalone virtual method(s) to already big mp_obj_type_t structure.
-
- 27 Jan, 2014 1 commit
-
-
mux authored
-
- 21 Jan, 2014 1 commit
-
-
Damien George authored
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
-
- 18 Jan, 2014 1 commit
-
-
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.
-
- 15 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 11 Jan, 2014 1 commit
-
-
John R. Lenton authored
-
- 08 Jan, 2014 1 commit
-
-
Damien George authored
-
- 07 Jan, 2014 4 commits
-
-
John R. Lenton authored
-
Damien George authored
-
John R. Lenton authored
-
John R. Lenton authored
It's not really about that, though; it's about me figuring out a sane way forward for keyword-argument functions (and function metadata). But it's useful as is, and shouldn't break any existing code, so here you have it; I'm going to park it in my mind for a bit while sorting out the rest of the dict branch.
-
- 06 Jan, 2014 2 commits
-
-
Damien George authored
-
ian-v authored
-