- 26 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 13 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
Getting a length of string may be expensive, depending on the underlying implementation.
-
- 25 May, 2014 1 commit
-
-
Damien George authored
Reorder interning logic in mp_obj_new_str, to be more efficient. str_new is globally accessible, so should be prefixed with mp_obj_.
-
- 15 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Done in generalized manner, allowing any stream class to be specified as working with bytes.
-
- 13 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 06 May, 2014 4 commits
-
-
Paul Sokolovsky authored
Enable only on unix. To avoid unpleasant surprises with error codes.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
In case of empty non-blocking read()/write(), both return None. read() cannot return 0, as that means EOF, so returns another value, and then write() just follows. This is still pretty unexpected, and typical "if not len:" check would treat this as EOF. Well, non-blocking files require special handling! This also kind of makes it depending on POSIX, but well, anything else should emulate POSIX anyway ;-).
-
- 03 May, 2014 2 commits
-
-
Damien George authored
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
-
Damien George authored
-
- 02 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Specifically, nlr.h does.
-
- 26 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
This in particular fixes writing str vs bytes.
-
- 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.
-
- 12 Apr, 2014 1 commit
-
-
Ilya Dmitrichenko authored
-
- 05 Apr, 2014 2 commits
-
-
Damien George authored
This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
-
Damien George authored
This does not affect code size or performance when debugging turned off. To address issue #420.
-
- 26 Mar, 2014 1 commit
-
-
Damien George authored
-
- 17 Mar, 2014 1 commit
-
-
xbe authored
Remove unnecessary includes. Add includes that improve portability.
-
- 15 Feb, 2014 1 commit
-
-
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.
-
- 12 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 08 Feb, 2014 1 commit
-
-
Damien George authored
Can't decide which is better for string type, char or byte pointer. Changing to char removes a few casts. Really need to do proper unicode.
-
- 22 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George 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
-
- 20 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Uses stream_unbuffered_readline underline.
-
- 19 Jan, 2014 1 commit
-
-
Damien George authored
-
- 16 Jan, 2014 2 commits
-
-
Paul Sokolovsky authored
Per Python3 io module semantics.
-
Paul Sokolovsky authored
-
- 15 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 13 Jan, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 08 Jan, 2014 2 commits
-
-
Damien George authored
Addresses issue #104.
-
Paul Sokolovsky authored
These can be used for any object which implements stream protocol (mp_stream_p_t).
-