- 02 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Specifically, nlr.h does.
-
- 18 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
When querying an object that supports the buffer protocol, that object must now return a typecode (as per binary.[ch]). This does not have to be honoured by the caller, but can be useful for determining element size.
-
- 17 Apr, 2014 2 commits
-
-
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.
-
Damien George authored
mp_obj_t->subscr now does load/store/delete.
-
- 15 Apr, 2014 1 commit
-
-
Damien George authored
-
- 13 Apr, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
Must use mp_obj_get_type to get the type of an object. Can't assume mp_obj_t is castable to mp_obj_base_t.
-
Paul Sokolovsky authored
-
- 11 Apr, 2014 5 commits
-
-
Damien George authored
Also convert mp_obj_is_integer to an inline function. Overall this decreased code size (at least on 32-bit x86 machine).
-
Damien George authored
It regressed a bit after implementing float/complex equality. Now it should be improved, and support more equality tests.
-
Damien George authored
It has (again) a fast path for ints, and a simplified "slow" path for everything else. Also simplify the way str indexing is done (now matches tuple and list).
-
Damien George authored
Addresses issue #462.
-
Damien George authored
-
- 09 Apr, 2014 1 commit
-
-
Damien George authored
mp_obj_is_integer should be used to check if an object is of integral type. It returns true for bool, small int and long int.
-
- 08 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 05 Apr, 2014 3 commits
-
-
Damien George authored
This does not affect code size or performance when debugging turned off. To address issue #420.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Quite natural to have d[int] = handle_int .
-
- 04 Apr, 2014 1 commit
-
-
Damien George authored
-
- 03 Apr, 2014 1 commit
-
-
Damien George authored
-
- 01 Apr, 2014 2 commits
-
-
Damien George authored
-
Dave Hylands authored
This adds support for almost everything (the comma isn't currently supported). The "unspecified" type with floats also doesn't behave exactly like python. Tested under unix with float and double Spot tested on stmhal
-
- 30 Mar, 2014 5 commits
-
-
Paul Sokolovsky authored
One of the reason for separate "message" (besides still unfulfilled desire to optimize memory usage) was apparent special handling of exception with messages by CPython. Well, the message is still just an exception argument, it just printed specially. Implement that with PRINT_EXC printing format.
-
Damien George authored
-
Damien George authored
Pretty much everyone needs to include map.h, since it's such an integral part of the Micro Python object implementation. Thus, the definitions are now in obj.h instead. map.h is removed.
-
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.
-
Paul Sokolovsky authored
-
- 29 Mar, 2014 3 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
Addresses issue #388.
-
- 24 Mar, 2014 1 commit
-
-
Damien George authored
-
- 22 Mar, 2014 1 commit
-
-
Damien George authored
-
- 20 Mar, 2014 1 commit
-
-
Damien George authored
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 13 Mar, 2014 2 commits
- 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).
-
- 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.
-