<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/basics/struct1.py, branch v1.3.10</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.10</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.10'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-12-05T23:13:52+00:00</updated>
<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>modstruct: Fix alignment handling issues.</title>
<updated>2014-06-25T20:34:44+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-06-25T19:25:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7a2f16694907fbe8bf5445e30d061f4bb1f9517a'/>
<id>urn:sha1:7a2f16694907fbe8bf5445e30d061f4bb1f9517a</id>
<content type='text'>
Also, factor out mp_binary_get_int() function.
</content>
</entry>
<entry>
<title>modstruct: Implement count specifier for strings (e.g. "100s").</title>
<updated>2014-05-12T20:45:50+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-12T20:45:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=df94b717b42bea39c1794a38bc10254e4f924e22'/>
<id>urn:sha1:df94b717b42bea39c1794a38bc10254e4f924e22</id>
<content type='text'>
Infra for counts of other types is there, need last mile to be implemented.
</content>
</entry>
<entry>
<title>modstruct: Initial implementation of struct.pack().</title>
<updated>2014-04-19T00:22:08+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-04-19T00:13:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6204460461cc21b27861fa89b2423119f8cdce88'/>
<id>urn:sha1:6204460461cc21b27861fa89b2423119f8cdce88</id>
<content type='text'>
</content>
</entry>
<entry>
<title>modstruct: Basic implementation of native struct alignment and types.</title>
<updated>2014-04-11T00:59:16+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-04-11T00:47:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0c43cf9154e331ab82bec7c727bc58307f8222c5'/>
<id>urn:sha1:0c43cf9154e331ab82bec7c727bc58307f8222c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>modstruct: Refactor to support both LE and BE packed structs.</title>
<updated>2014-04-11T00:58:49+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-04-10T19:19:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6582d64d01c448be4f575f964c549e1ebffe0db0'/>
<id>urn:sha1:6582d64d01c448be4f575f964c549e1ebffe0db0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Start implementing "struct" module.</title>
<updated>2014-04-10T00:58:03+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-04-10T00:45:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e9db8404804f2eed07eb0a6190f73ae21e0dc43c'/>
<id>urn:sha1:e9db8404804f2eed07eb0a6190f73ae21e0dc43c</id>
<content type='text'>
Only calcsize() and unpack() functions provided so far, for little-endian
byte order. Format strings don't support repition spec (like "2b3i").

Unfortunately, dealing with all the various binary type sizes and alignments
will lead to quite a bloated "binary" helper functions  - if optimizing for
speed. Need to think if using dynamic parametrized algos makes more sense.
</content>
</entry>
</feed>
