- 10 Apr, 2014 10 commits
-
-
Damien George authored
Labels should never be negative, and this modified type signature reflects that.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Eg, in CPython stdlib, email/header.py has a form-feed character.
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Only calcsize() and unpack() functions provided so far, for little-endian byte order. Format strings don't support repition spec (like "2b3i"). Unfortunately, dealing with all the various binary type sizes and alignments will lead to quite a bloated "binary" helper functions - if optimizing for speed. Need to think if using dynamic parametrized algos makes more sense.
-
Paul Sokolovsky authored
Syntax is usual C #if*/#endif, but each qstr must be wrapped individually.
-
- 09 Apr, 2014 15 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Andrew Scheller authored
This prevents micropython printing exception messages like ImportError: ImportError: No module named 'foo'
-
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
-
Damien George authored
-
Damien George authored
-
Damien George authored
Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice.
-
Damien George authored
So we can add more flags.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Small reduction in ROM, heap and stack usage.
-
Damien George authored
Convert int types to uint where sensible, and then to uint8_t or uint16_t where possible to reduce RAM usage.
-
Paul Sokolovsky authored
-
- 08 Apr, 2014 15 commits
-
-
Damien George authored
With the implementation of proper string formatting, code to print a small int was delegated to mpz_as_str_inpl (after first converting the small int to an mpz using stack memory). But mpz_as_str_inpl allocates heap memory to do the conversion, so small ints needed heap memory just to be printed. This fix has a separate function to print small ints, which does not allocate heap, and allocates less stack. String formatting, printf and pfenv are now large beasts, with some semi-duplicated code.
-
Damien George authored
-
Paul Sokolovsky authored
These two are apprerently the most concise and efficient way to convert int to/from bytes in Python. The alternatives are struct and array modules, but methods using them are more verbose in Python code and less efficient in memory/cycles.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
This makes the runtime and object APIs more consistent. mp_store_subscr functionality now moved into objects (ie list and dict store_item).
-
Damien George authored
At this point, all opcodes are now implemented! Some del opcodes have been combined with store opcodes, with the value to store being MP_OBJ_NULL.
-
Paul Sokolovsky authored
-
xbe authored
-
xbe authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
To create bytearray of given length.
-