<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py, branch v1.3.6</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.6</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.6'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-11-03T16:18:51+00:00</updated>
<entry>
<title>py: Explicitly set uninitialised struct member to false.</title>
<updated>2014-11-03T16:18:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-03T16:18:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ff319dffad6a0229f8c0cea3a54f73eec8d48e9e'/>
<id>urn:sha1:ff319dffad6a0229f8c0cea3a54f73eec8d48e9e</id>
<content type='text'>
Uninitialised struct members get a default value of 0/false, so this is
not strictly needed.  But it actually decreases code size because when
all members are initialised the compiler doesn't need to insert a call
to memset to clear everything.  In other words, setting 1 extra member
to 0 uses less code than calling memset.

ROM savings in bytes: 32-bit unix: 100; bare-arm: 44; stmhal: 52.
</content>
</entry>
<entry>
<title>py: Fix builtin callable so it checks user-defined instances correctly.</title>
<updated>2014-11-03T16:09:39+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-03T16:09:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0344fa1ddfbe8674061fed8e904468b9bd2aa550'/>
<id>urn:sha1:0344fa1ddfbe8674061fed8e904468b9bd2aa550</id>
<content type='text'>
Addresses issue #953.
</content>
</entry>
<entry>
<title>py: Fix bug with right-shifting small ints by large amounts.</title>
<updated>2014-11-02T00:41:30+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-11-02T00:39:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=039887a0ac9bd02cfd84e4792d3d21a78bc06a7f'/>
<id>urn:sha1:039887a0ac9bd02cfd84e4792d3d21a78bc06a7f</id>
<content type='text'>
Undefined behavior in C, needs explicit check.
</content>
</entry>
<entry>
<title>py: Make gc.enable/disable just control auto-GC; alloc is still allowed.</title>
<updated>2014-10-31T21:30:46+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-31T21:30:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=109c1de015eeee385020233e2f8cc6f921149103'/>
<id>urn:sha1:109c1de015eeee385020233e2f8cc6f921149103</id>
<content type='text'>
gc.enable/disable are now the same as CPython: they just control whether
automatic garbage collection is enabled or not.  If disabled, you can
still allocate heap memory, and initiate a manual collection.
</content>
</entry>
<entry>
<title>py: Add builtin round function.</title>
<updated>2014-10-31T11:28:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-31T11:28:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1559a978100762efd84666befd134d5975ae8d4b'/>
<id>urn:sha1:1559a978100762efd84666befd134d5975ae8d4b</id>
<content type='text'>
Addresses issue #934.
</content>
</entry>
<entry>
<title>mpz: Fix 64bit msvc build</title>
<updated>2014-10-30T23:00:24+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2014-10-30T13:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0e557facb93425e791a23a6695b202e467a60026'/>
<id>urn:sha1:0e557facb93425e791a23a6695b202e467a60026</id>
<content type='text'>
msvc does not treat 1L a 64bit integer hence all occurences of shifting it left or right
result in undefined behaviour since the maximum allowed shift count for 32bit ints is 31.
Forcing the correct type explicitely, stored in MPZ_LONG_1, solves this.
</content>
</entry>
<entry>
<title>objstr: Allow to convert any buffer proto object to str.</title>
<updated>2014-10-30T22:03:53+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-30T21:58:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e62a0fe36776f039149e7fab77323aa380b97c2e'/>
<id>urn:sha1:e62a0fe36776f039149e7fab77323aa380b97c2e</id>
<content type='text'>
Original motivation is to support converting bytearrays, but easier to just
support buffer protocol at all.
</content>
</entry>
<entry>
<title>py: mp_obj_str_get_str(): Work with bytes too.</title>
<updated>2014-10-30T22:00:39+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-30T14:36:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=31619cc5893b8066799e663683ea9a7ea29602e1'/>
<id>urn:sha1:31619cc5893b8066799e663683ea9a7ea29602e1</id>
<content type='text'>
It should be fair to say that almost in all cases where some API call
expects string, it should be also possible to pass byte string. For example,
it should be open/delete/rename file with name as bytestring. Note that
similar change was done quite a long ago to mp_obj_str_get_data().
</content>
</entry>
<entry>
<title>py: Allow to override port config file and thus have &gt;1 configs per port.</title>
<updated>2014-10-29T23:37:45+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-29T02:08:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b1422de12f0f0556c845ab029c5077d9a69a8314'/>
<id>urn:sha1:b1422de12f0f0556c845ab029c5077d9a69a8314</id>
<content type='text'>
Use it like:

make CFLAGS_EXTRA='-DMP_CONFIGFILE="&lt;mpconfigport_my.h&gt;"'
</content>
</entry>
<entry>
<title>Fix errors after enabling -Wpointer-arith</title>
<updated>2014-10-29T15:42:38+00:00</updated>
<author>
<name>stijn</name>
<email>stinos@zoho.com</email>
</author>
<published>2014-10-28T16:20:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=49c47da8046e46348d43037c3a41059180eb280f'/>
<id>urn:sha1:49c47da8046e46348d43037c3a41059180eb280f</id>
<content type='text'>
</content>
</entry>
</feed>
