<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/lib, branch 4.0.0-beta.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-beta.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=4.0.0-beta.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2019-02-03T21:41:20+00:00</updated>
<entry>
<title>Add fast seek support to file objects</title>
<updated>2019-02-03T21:41:20+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-02-03T21:41:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a393a6e0c578231123220e73adc32b8ee58db64b'/>
<id>urn:sha1:a393a6e0c578231123220e73adc32b8ee58db64b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update tinyusb, work better with sd</title>
<updated>2019-01-29T14:03:18+00:00</updated>
<author>
<name>hathach</name>
<email>thach@tinyusb.org</email>
</author>
<published>2019-01-29T13:47:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d1fb384a4a4cda91f293aac7ae49c570a97daa7c'/>
<id>urn:sha1:d1fb384a4a4cda91f293aac7ae49c570a97daa7c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add USB MIDI support for SAMD and nRF.</title>
<updated>2019-01-09T22:02:11+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-11-17T01:04:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b5e40f52c2b1c2890c866d7305e0e99b4811b7f5'/>
<id>urn:sha1:b5e40f52c2b1c2890c866d7305e0e99b4811b7f5</id>
<content type='text'>
The API should be identical to using a UART for MIDI.

Fixes #672
</content>
</entry>
<entry>
<title>Switch TinyUSB back to hathach's version. The merge commit of the commit we were on.</title>
<updated>2018-12-06T23:39:47+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-12-06T23:39:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=45b301856c9e10b8e942102d52f8d1c5fbb977b2'/>
<id>urn:sha1:45b301856c9e10b8e942102d52f8d1c5fbb977b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #1323 from notro/os_mkdir_a_b</title>
<updated>2018-11-27T22:08:51+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2018-11-27T22:08:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f6c73b35f9b69ed7490d15be36d9aa36bb9f792f'/>
<id>urn:sha1:f6c73b35f9b69ed7490d15be36d9aa36bb9f792f</id>
<content type='text'>
shared-module/os: Fix os.mkdir('a/b')</content>
</entry>
<entry>
<title>Update tinyusb to include control fixes.</title>
<updated>2018-11-23T21:28:10+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-11-23T20:51:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=324301e3bc23d3c5d2b7aebff745999c38532d19'/>
<id>urn:sha1:324301e3bc23d3c5d2b7aebff745999c38532d19</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update TinyUSB with SAMD fixes.</title>
<updated>2018-11-14T22:54:00+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-11-14T22:54:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fd3178b2fe1f6ccb7dc1519d795b973b7ff4214a'/>
<id>urn:sha1:fd3178b2fe1f6ccb7dc1519d795b973b7ff4214a</id>
<content type='text'>
Fixes #1327
</content>
</entry>
<entry>
<title>Fix output overflow and make help translatable</title>
<updated>2018-11-10T00:41:08+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-11-10T00:41:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=355abc835ea75715b4dea38604ef64f8c4eeaa0f'/>
<id>urn:sha1:355abc835ea75715b4dea38604ef64f8c4eeaa0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Incorporate feedback:</title>
<updated>2018-11-09T19:33:56+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2018-11-09T19:33:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=43f7ca7985768c974b6881957b21d687c34413ba'/>
<id>urn:sha1:43f7ca7985768c974b6881957b21d687c34413ba</id>
<content type='text'>
* Clean up board defines.
* Add flush on eject and stay ejected.
* Swith back to NONE protocol for CDC.
</content>
</entry>
<entry>
<title>shared-module/os: Fix os.mkdir('a/b')</title>
<updated>2018-11-09T18:20:56+00:00</updated>
<author>
<name>Noralf Trønnes</name>
<email>noralf@tronnes.org</email>
</author>
<published>2018-11-09T17:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=28383afa11863f1fe289cc811c8eab403ea79f6f'/>
<id>urn:sha1:28383afa11863f1fe289cc811c8eab403ea79f6f</id>
<content type='text'>
This fixes commit a99f9427420d("'/' and '\' are also acceptable ends of the path now") which broke mkdir.
The problem is where the directory name is a single letter like this:
&gt;&gt;&gt; os.mkdir('a')
&gt;&gt;&gt; os.mkdir('a/b')
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
OSError: [Errno 17] File exists
&gt;&gt;&gt; os.mkdir('a/bb')
&gt;&gt;&gt;

I wasn't smart enough to fix this in the oofatfs library, so I did it in the os shared module by
creating a path lookup function for the os methods that only deals with directories. I reverted
the library change introduced by the aforementioned commit.

This means that os.stat and os.rename can't handle trailing slashes. This is to avoid allowing
filenames with trailing slashes to pass through. In order to handle trailing slashes for these
it would be necessary to check if it really is a directory before stripping. I didn't do this
since the original issue was to make os.chdir tolerate trailing slashes.

There's an open MicroPython issue #2929 wrt. trailing slashes and mkdir.
</content>
</entry>
</feed>
