<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/extmod/moductypes.c, branch v1.3.9</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.9</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.9'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-01-20T12:47:20+00:00</updated>
<entry>
<title>py, unix: Allow to compile with -Wunused-parameter.</title>
<updated>2015-01-20T12:47:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-20T12:47:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660'/>
<id>urn:sha1:ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660</id>
<content type='text'>
See issue #699.
</content>
</entry>
<entry>
<title>py, unix, lib: Allow to compile with -Wold-style-definition.</title>
<updated>2015-01-12T22:34:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-12T22:34:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=abc1959e2c8170cc37d2e1fa1654f1266479d666'/>
<id>urn:sha1:abc1959e2c8170cc37d2e1fa1654f1266479d666</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod: Prefix py/ for includes from py core directory.</title>
<updated>2015-01-01T20:35:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-01T20:35:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3765ea419a7b68d3349a3c90089cfec9063db94b'/>
<id>urn:sha1:3765ea419a7b68d3349a3c90089cfec9063db94b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Make functions static where appropriate.</title>
<updated>2014-12-10T22:08:14+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-12-10T22:07:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=969a6b37bfc655609e540053c2bdcce8a6fdc64d'/>
<id>urn:sha1:969a6b37bfc655609e540053c2bdcce8a6fdc64d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack.</title>
<updated>2014-12-05T23:13:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-12-05T23:13:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=be6d8be91e133e98117025062df0e63aaf87efd2'/>
<id>urn:sha1:be6d8be91e133e98117025062df0e63aaf87efd2</id>
<content type='text'>
mp_obj_int_get_truncated is used as a "fast path" int accessor that
doesn't check for overflow and returns the int truncated to the machine
word size, ie mp_int_t.

Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word
sized values.

Addresses issues #779 and #998.
</content>
</entry>
<entry>
<title>Use MP_DEFINE_CONST_DICT macro to define module dicts.</title>
<updated>2014-11-29T14:39:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-29T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3b603f29ec093b77b6fad72d77becd5375310637'/>
<id>urn:sha1:3b603f29ec093b77b6fad72d77becd5375310637</id>
<content type='text'>
This is just a clean-up of the code.  Generated code is exactly the
same.
</content>
</entry>
<entry>
<title>moductypes: Make .sizeof() work with bytearrays.</title>
<updated>2014-10-30T01:50:37+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-30T01:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8bb71f0b06cb558b76471bd5459c1ca49224d2cc'/>
<id>urn:sha1:8bb71f0b06cb558b76471bd5459c1ca49224d2cc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>moductypes: When dereferencing a field which is array of uint8, use bytearray.</title>
<updated>2014-10-30T01:50:34+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-30T01:32:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6d287a6a029df0d4b7a2ab8bdd73be77c0c04317'/>
<id>urn:sha1:6d287a6a029df0d4b7a2ab8bdd73be77c0c04317</id>
<content type='text'>
Because bytearrays are much friendlier to work with, e.g. they can be printed
easily.
</content>
</entry>
<entry>
<title>moductypes: Make sure we can apply .sizeof() to all aggregate types.</title>
<updated>2014-10-30T01:50:23+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-30T00:43:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2559e1395700caa3d3ffd21f3f9178d0b90004bf'/>
<id>urn:sha1:2559e1395700caa3d3ffd21f3f9178d0b90004bf</id>
<content type='text'>
Before, sizeof() could be applied to a structure field only if that field
was itself a structure. Now it can be applied to PTR and ARRAY fields too.
It's not possible to apply it to scalar fields though, because as soon as
scalar field (int or float) is dereferenced, its value is converted into
Python int/float value, and all original type info is lost. Moreover, we
allow sizeof of type definitions too, and there int is used to represent
(scalar) types. So, we have ambiguity what int may be - either dereferenced
scalar structure field, or encoded scalar type. So, rather throw an error
if user tries to apply sizeof() to int.
</content>
</entry>
<entry>
<title>py: Make mp_binary_set_val work on big endian machine.</title>
<updated>2014-10-06T15:05:35+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-06T15:05:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9336ee320a85527942d9ca2ddb95221d90582da0'/>
<id>urn:sha1:9336ee320a85527942d9ca2ddb95221d90582da0</id>
<content type='text'>
</content>
</entry>
</feed>
