- 30 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 26 Apr, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Share code with .strip(). TODO: optimize .rstrip().
-
- 19 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 18 Apr, 2014 1 commit
-
-
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 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 14 Apr, 2014 1 commit
-
-
Damien George authored
Disabled by default. Enabled in unix port.
-
- 13 Apr, 2014 4 commits
-
-
Paul Sokolovsky authored
Similar to tuples, lists, dicts. Statically allocated strings don't have hash computed.
-
Paul Sokolovsky authored
This feature was proposed with initial hashing RFC, and is prerequisite for seamless static str object definition.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
These largely duplicate str() & bytes() constructors' functionality, but can be used to achieve Python2 compatibility.
-
- 11 Apr, 2014 1 commit
-
-
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).
-
- 09 Apr, 2014 3 commits
-
-
Paul Sokolovsky authored
-
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.
-
Damien George authored
-
- 08 Apr, 2014 5 commits
-
-
xbe authored
-
xbe authored
-
Paul Sokolovsky authored
-
Andrew Scheller authored
-
Damien George authored
stmhal relies on pfenv_* to implement its printf. Thus, it needs a pfenv_print_int which prints a proper 32-bit integer. With latest change to pfenv, this function became one that took mp_obj_t, and extracted the integer value from that object. To fix temporarily, pfenv_print_int has been renamed to pfenv_print_mp_int (to indicate it takes a mp_obj_t for the int), and pfenv_print_int has been added (which takes a normal C int). Currently, pfenv_print_int proxies to pfenv_print_mp_int, but this means it looses the MSB. Need to find a way to fix this, but the only way I can think of will duplicate lots of code.
-
- 07 Apr, 2014 1 commit
-
-
Dave Hylands authored
-
- 06 Apr, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 05 Apr, 2014 2 commits
-
-
Damien George authored
This does not affect code size or performance when debugging turned off. To address issue #420.
-
Dave Hylands authored
-
- 04 Apr, 2014 1 commit
-
-
Dave Hylands authored
The alternate form for floating point doesn't work yet. The %(name)s form doesn't work yet.
-
- 02 Apr, 2014 3 commits
-
-
Dave Hylands authored
Also fix objstr.c to compile when floats disabled.
-
Damien George authored
Also change formating modifier in test script (it still passes with original format though).
-
Damien George authored
-
- 01 Apr, 2014 1 commit
-
-
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
-
- 31 Mar, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
- 30 Mar, 2014 3 commits
-
-
Paul Sokolovsky 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.
-
- 29 Mar, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
Addresses issue #388.
-