- Jun 18, 2014
-
-
stijn authored
-
- Jun 16, 2014
-
-
stijn authored
Add more DEBUG_printf statements to trace gc behaviour
-
- Jun 15, 2014
-
-
Damien George authored
This adds a hook to get/set pyb_uart_global_debug from Python, using pyb.repl_uart(). You can set it to an arbitrary UART object, and then the REPL (in and out) is repeated on this UART object (as well as on USB CDC). Ultimately, this will be replaced with a proper Pythonic interface to set sys.stdin and sys.stdout.
-
Damien George authored
-
Damien George authored
Also make stdout_print_strn static (ultimately this function needs to be merged with stdout_tx_strn).
-
- Jun 14, 2014
-
-
Damien George authored
Still some method names to iron out, and funtionality to add, but this will do for the first, basic version.
-
Paul Sokolovsky authored
char can be signedness, and using signedness types is dangerous - it can lead to negative offsets when doing table lookups. We apparently should just ban char usage.
-
Damien George authored
Add __assert_func
-
mux authored
-
mux authored
-
mux authored
* issue #692
-
Paul Sokolovsky authored
In preparation for unicode support.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
We still have that char vs byte dichotomy, but majority of string operations now use byte.
-
- Jun 13, 2014
-
-
Paul Sokolovsky authored
This will allow roughly the same behavior as Python3 for non-ASCII strings, for example, print("<phrase in non-Latin script>".split()) will print list of words, not weird hex dump (like Python2 behaves). (Of course, that it will print list of words, if there're "words" in that phrase at all, separated by ASCII-compatible whitespace; that surely won't apply to every human language in existence).
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
Getting a length of string may be expensive, depending on the underlying implementation.
-
stijn authored
void* is of unknown size
-
- Jun 12, 2014
-
-
Damien George authored
-
- Jun 11, 2014
-
-
Paul Sokolovsky authored
Functionality we provide in builtin io module is fairly minimal. Some code, including CPython stdlib, depends on more functionality. So, there's a choice to either implement it in C, or move it _io, and let implement other functionality in Python. 2nd choice is pursued. This setup matches CPython too (_io is builtin, io is Python-level).
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
It needs to be reused for generator functions, too.
-
Damien George authored
-
Damien George authored
Also now returns correct POSIX errno when an IO operation fails. Addresses issues #516 and #676.
-
- Jun 10, 2014
-
-
Damien George authored
-
- Jun 09, 2014
-
-
Paul Sokolovsky authored
Remove unnecessary bounds check from mp_seq_get_fast_slice_indexes.
-
Chris Angelico authored
At this point, start will be >= 0, so checking if stop < 0 is redundant with checking if start > stop a few lines later.
-
- Jun 08, 2014
-
-
Paul Sokolovsky authored
This is getting more and more tangled, but that's old news.
-
Paul Sokolovsky authored
As before, instead of pushing constant values on stack again and again, just pass around pointer to a structure.
-
Damien George authored
See PR #618.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-