<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/unix/file.c, branch v1.9.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-02-16T07:38:06+00:00</updated>
<entry>
<title>py: Add iter_buf to getiter type method.</title>
<updated>2017-02-16T07:38:06+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-01-09T23:14:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ae8d86758631e62466a55d179897d2111c3cb1c1'/>
<id>urn:sha1:ae8d86758631e62466a55d179897d2111c3cb1c1</id>
<content type='text'>
Allows to iterate over the following without allocating on the heap:
- tuple
- list
- string, bytes
- bytearray, array
- dict (not dict.keys, dict.values, dict.items)
- set, frozenset

Allows to call the following without heap memory:
- all, any, min, max, sum

TODO: still need to allocate stack memory in bytecode for iter_buf.
</content>
</entry>
<entry>
<title>all: Remove readall() method, which is equivalent to read() w/o args.</title>
<updated>2016-11-13T21:24:22+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-11-13T21:24:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=59a1201da959ab01895361c0b5bb8bc1409f2b39'/>
<id>urn:sha1:59a1201da959ab01895361c0b5bb8bc1409f2b39</id>
<content type='text'>
Its addition was due to an early exploration on how to add CPython-like
stream interface. It's clear that it's not needed and just takes up
bytes in all ports.
</content>
</entry>
<entry>
<title>unix: Use mp_raise_OSError helper function.</title>
<updated>2016-10-07T03:05:15+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-07T03:05:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=503089ea9d6b358f1a06ad1f164561b7cf11c742'/>
<id>urn:sha1:503089ea9d6b358f1a06ad1f164561b7cf11c742</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/moduselect: Allow poll.register(), etc. accept fd-like objects.</title>
<updated>2016-08-06T22:25:59+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-08-06T22:21:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a4aaf824219818c421b85436b0bf8f67468590d9'/>
<id>urn:sha1:a4aaf824219818c421b85436b0bf8f67468590d9</id>
<content type='text'>
This includes file and socket objects, backed by Unix file descriptor.
This improves compatibility with stmhal's uselect (and convenience of
use), though not completely: return value from poll.poll() is still
raw file descriptor.
</content>
</entry>
<entry>
<title>unix/file: Use generic stream flush() method.</title>
<updated>2016-07-27T21:28:27+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-27T21:28:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=64da62ec2eb2c7d2d598e4219d23ad6143a20228'/>
<id>urn:sha1:64da62ec2eb2c7d2d598e4219d23ad6143a20228</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/file: fdfile_ioctl(): Fix argument to check_fd_is_open().</title>
<updated>2016-07-26T23:50:11+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-26T23:50:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=01816068c8254c3440e8e6afac250ae00e332b91'/>
<id>urn:sha1:01816068c8254c3440e8e6afac250ae00e332b91</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/file: ioctl(): Check that file is open before operations.</title>
<updated>2016-07-26T21:30:09+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-26T21:30:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ade36806c8b81cd6509b6823b908e38ae747805f'/>
<id>urn:sha1:ade36806c8b81cd6509b6823b908e38ae747805f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/file: Implement MP_STREAM_FLUSH ioctl.</title>
<updated>2016-07-26T21:24:09+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-07-26T21:24:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8fac939889c6f2db36cc8f1290605812305cea59'/>
<id>urn:sha1:8fac939889c6f2db36cc8f1290605812305cea59</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unix/file: If write syscall returns because of EINTR then try again.</title>
<updated>2016-06-28T10:28:49+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-04T09:22:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f1b6db221875f6ad30ff0723f2c2302aeab70d0e'/>
<id>urn:sha1:f1b6db221875f6ad30ff0723f2c2302aeab70d0e</id>
<content type='text'>
As per PEP-475.
</content>
</entry>
<entry>
<title>all: Rename mp_obj_type_t::stream_p to protocol.</title>
<updated>2016-06-18T15:44:57+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-06-18T15:19:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=07209f8592f15435d6abbccaad5347cea2c7722e'/>
<id>urn:sha1:07209f8592f15435d6abbccaad5347cea2c7722e</id>
<content type='text'>
It's now used for more than just stream protocol (e.g. pin protocol), so
don't use false names.
</content>
</entry>
</feed>
