<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/stream.c, branch reentrant-gc</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=reentrant-gc</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=reentrant-gc'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-10-16T09:22:52+00:00</updated>
<entry>
<title>stream: Handle non-blocking errors in readline() properly.</title>
<updated>2014-10-16T09:22:52+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-16T09:22:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=923a8a83200f7f1061b8bdad9457d093f7cec147'/>
<id>urn:sha1:923a8a83200f7f1061b8bdad9457d093f7cec147</id>
<content type='text'>
Just like they handled in other read*(). Note that behavior of readline()
in case there's no data when it's called is underspecified in Python lib
spec, implemented to behave as read() - return None.
</content>
</entry>
<entry>
<title>stream: Return errno value as first arg of OSError exception.</title>
<updated>2014-10-15T23:58:52+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-15T23:56:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0c7b26c0f816664222c8495d7cb5c44d40acd009'/>
<id>urn:sha1:0c7b26c0f816664222c8495d7cb5c44d40acd009</id>
<content type='text'>
This is CPython-compatible convention established yet in acb13886fc837a1bb9.
</content>
</entry>
<entry>
<title>py: Small cleanup in stream.c.</title>
<updated>2014-08-22T17:30:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-22T17:30:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=69b7dae36227f7c41fc1e8a3ef3fe3889ac1c7df'/>
<id>urn:sha1:69b7dae36227f7c41fc1e8a3ef3fe3889ac1c7df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change stream protocol API: fns return uint; is_text for text.</title>
<updated>2014-07-27T21:38:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-07-27T21:38:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=adf0f2ae1a3debf8465ece7e065ddba2d4032e8c'/>
<id>urn:sha1:adf0f2ae1a3debf8465ece7e065ddba2d4032e8c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>streams: Treat non-error output size as unsigned.</title>
<updated>2014-07-22T21:25:46+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-07-22T21:25:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4ecb700fe34491c563372ffa72387ef6d45ce5d8'/>
<id>urn:sha1:4ecb700fe34491c563372ffa72387ef6d45ce5d8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stream: Revert to checking for the correct error value.</title>
<updated>2014-07-22T21:23:44+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-07-22T21:23:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e1b1abc1e830b674ab0e773ae5cec414ed0dbee1'/>
<id>urn:sha1:e1b1abc1e830b674ab0e773ae5cec414ed0dbee1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Deal with reading a buffer less than what was allocated.</title>
<updated>2014-07-22T02:10:10+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-07-21T23:51:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1d8816c36bbb638cd9e5319f820d2b2cf22a9822'/>
<id>urn:sha1:1d8816c36bbb638cd9e5319f820d2b2cf22a9822</id>
<content type='text'>
With this fix, file_long_read now passes.
</content>
</entry>
<entry>
<title>py: Add stream reading of n unicode chars; unicode support by default.</title>
<updated>2014-07-19T17:34:04+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-07-16T10:45:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1694bc733d3ace8072c58e7da457dd2995998189'/>
<id>urn:sha1:1694bc733d3ace8072c58e7da457dd2995998189</id>
<content type='text'>
With unicode enabled, this patch allows reading a fixed number of
characters from text-mode streams; eg file.read(5) will read 5 unicode
chars, which can made of more than 5 bytes.

For an ASCII stream (ie no chars &gt; 127) it only needs to do 1 read.  If
there are lots of non-ASCII chars in a stream, then it needs multiple
reads of the underlying object.

Adds a new test for this case.  Enables unicode support by default on
unix and stmhal ports.
</content>
</entry>
<entry>
<title>stream: Factor out mp_stream_write() method to write a memstring to stream.</title>
<updated>2014-07-13T20:14:32+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-07-13T20:04:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ac736f15c995466a0852506438d95934d65d2179'/>
<id>urn:sha1:ac736f15c995466a0852506438d95934d65d2179</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename machine_(u)int_t to mp_(u)int_t.</title>
<updated>2014-07-03T12:25:24+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-07-03T12:25:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=40f3c026823f8951a2fa04e9c7fc93c75bc27bec'/>
<id>urn:sha1:40f3c026823f8951a2fa04e9c7fc93c75bc27bec</id>
<content type='text'>
See discussion in issue #50.
</content>
</entry>
</feed>
