summaryrefslogtreecommitdiff
path: root/py/stream.c
AgeCommit message (Expand)Author
2015-10-18py/stream: Allow to reuse is_nonblocking_error().Paul Sokolovsky
2015-08-13py: Add stream_tell method, and use for unix and stmhal file tell.blmorris
2015-05-12py: Add mp_obj_get_int_truncated and use it where appropriate.Damien George
2015-01-28py: Change vstr so that it doesn't null terminate buffer by default.Damien George
2015-01-24stream: readall(): Make sure there's a trailing NUL char.Paul Sokolovsky
2015-01-23stream: Fix readall() implementation in respect to NUL terminator bytes.Paul Sokolovsky
2015-01-21py: Remove mp_obj_str_builder and use vstr instead.Damien George
2015-01-21py: Add mp_obj_new_str_from_vstr, and use it where relevant.Damien George
2015-01-01py: Move to guarded includes, everywhere in py/ core.Damien George
2014-12-05py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack.Damien George
2014-11-16py: Make stream seek correctly check for ioctl fn; add seek for textio.Damien George
2014-11-17stream: Implement seek operation support via ioctl, wrapped in generic method.Paul Sokolovsky
2014-10-24py: Use mp_uint_t where appropriate in stream functions.Damien George
2014-10-23stream: Add optional 2nd "length" arg to .readinto() - extension to CPython.Paul Sokolovsky
2014-10-18unix, stmhal: Implement file.readinto() method.Paul Sokolovsky
2014-10-17py: Improve stream_read so it doesn't need to alloc 2 bits of heap.Damien George
2014-10-16stream: Handle non-blocking errors in readline() properly.Paul Sokolovsky
2014-10-16stream: Return errno value as first arg of OSError exception.Paul Sokolovsky
2014-08-22py: Small cleanup in stream.c.Damien George
2014-07-27py: Change stream protocol API: fns return uint; is_text for text.Damien George
2014-07-23streams: Treat non-error output size as unsigned.Paul Sokolovsky
2014-07-23stream: Revert to checking for the correct error value.Paul Sokolovsky
2014-07-21Deal with reading a buffer less than what was allocated.Dave Hylands
2014-07-19py: Add stream reading of n unicode chars; unicode support by default.Damien George
2014-07-13stream: Factor out mp_stream_write() method to write a memstring to stream.Paul Sokolovsky
2014-07-03Rename machine_(u)int_t to mp_(u)int_t.Damien George
2014-06-29windows: Sync mpconfigport.h with the unix' versionstijn
2014-06-27streams: Reading by char count from unicode text streams is not implemented.Paul Sokolovsky
2014-06-13stream: Use mp_obj_is_true() for EOF testing.Paul Sokolovsky
2014-05-25py: Slightly improve efficiency of mp_obj_new_str; rename str_new.Damien George
2014-05-15objstringio: Implement io.BytesIO.Paul Sokolovsky
2014-05-13py, unix: Add copyright for modules I worked closely on.Paul Sokolovsky
2014-05-07stream: Make non-blcoking stream support configurable.Paul Sokolovsky
2014-05-07stream: Use standard name of DEFAULT_BUFFER_SIZE.Paul Sokolovsky
2014-05-07stream: Add compliant handling of non-blocking readall().Paul Sokolovsky
2014-05-07stream: Add compliant handling of non-blocking read()/write().Paul Sokolovsky
2014-05-03Add license header to (almost) all files.Damien George
2014-05-03py, stream: Implement readlines for a stream.Damien George
2014-05-02py, unix: Make "mpconfig.h" be first included, as other headers depend on it.Paul Sokolovsky
2014-04-26streams: Make .write() support arbitrary objects with buffer interface.Paul Sokolovsky
2014-04-17py: Add MP_OBJ_STOP_ITERATION and make good use of it.Damien George
2014-04-12py: the entire `<unistd.h>` shouldn't be neededIlya Dmitrichenko
2014-04-05py: Replace stream_p with *stream_p in mp_obj_type_t.Damien George
2014-04-05py: Change nlr_jump to nlr_raise, to aid in debugging.Damien George
2014-03-26py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.Damien George
2014-03-17py: Clean up includes.xbe
2014-02-15Implement proper exception type hierarchy.Damien George
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky
2014-02-08Make mp_obj_str_get_data return char* instead of byte*.Damien George
2014-01-22file.readline(): Use mp_obj_str_get_data() and fix off-by-one error on EOF.Paul Sokolovsky