<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/basics, branch v1.4.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-06-13T22:38:28+00:00</updated>
<entry>
<title>py: Implement divmod for mpz bignum.</title>
<updated>2015-06-13T22:38:28+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-06-13T21:40:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e9ce00d874ef6c93a56e726bb1503341f0448bf9'/>
<id>urn:sha1:e9ce00d874ef6c93a56e726bb1503341f0448bf9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Add further tests for class defining __hash__.</title>
<updated>2015-05-12T22:08:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-12T22:08:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7bab32ef89d760a8cf4aeb2700725ea88e3fc31c'/>
<id>urn:sha1:7bab32ef89d760a8cf4aeb2700725ea88e3fc31c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function.</title>
<updated>2015-05-12T21:46:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-11T12:25:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c2a4e4effc81d8ab21bb014e34355643e5ca0da2'/>
<id>urn:sha1:c2a4e4effc81d8ab21bb014e34355643e5ca0da2</id>
<content type='text'>
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as
the operator argument.  Hashing for int, str and bytes still go via
fast-path in mp_unary_op since they are the most common objects which
need to be hashed.

This lead to quite a bit of code cleanup, and should be more efficient
if anything.  It saves 176 bytes code space on Thumb2, and 360 bytes on
x86.

The only loss is that the error message "unhashable type" is now the
more generic "unsupported type for __hash__".
</content>
</entry>
<entry>
<title>vm: Properly handle StopIteration raised in user instance iterator.</title>
<updated>2015-05-11T22:57:42+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-05-10T23:59:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6738c1dded8e436686f85008ec0a4fc47406ab7a'/>
<id>urn:sha1:6738c1dded8e436686f85008ec0a4fc47406ab7a</id>
<content type='text'>
I.e. in bytecode Python functions.
</content>
</entry>
<entry>
<title>py: iternext() may not return MP_OBJ_NULL, only MP_OBJ_STOP_ITERATION.</title>
<updated>2015-05-09T21:41:49+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-05-09T21:41:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4ed7b7f751b161420e6979927fd0756467a10cb7'/>
<id>urn:sha1:4ed7b7f751b161420e6979927fd0756467a10cb7</id>
<content type='text'>
Testing for incorrect value led to premature termination of generator
containing yield from for such iterator (e.g. "yield from [1, 2]").
</content>
</entry>
<entry>
<title>py: Fix naming of function arguments when function is a closure.</title>
<updated>2015-05-06T12:55:33+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-06T12:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9a42eb541eb426a04bb0541ccf0e26ce82bdcb22'/>
<id>urn:sha1:9a42eb541eb426a04bb0541ccf0e26ce82bdcb22</id>
<content type='text'>
Addresses issue #1226.
</content>
</entry>
<entry>
<title>obj: Handle user instance hash based on Python adhoc rules.</title>
<updated>2015-05-05T19:48:19+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-05-04T19:41:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=37c6555b4419eb6027a345ee0c3e759d50da771f'/>
<id>urn:sha1:37c6555b4419eb6027a345ee0c3e759d50da771f</id>
<content type='text'>
User instances are hashable by default (using __hash__ inherited from
"object"). But if __eq__ is defined and __hash__ not defined in particular
class, instance is not hashable.
</content>
</entry>
<entry>
<title>modstruct: Rename module to "ustruct", to allow full Python-level impl.</title>
<updated>2015-05-04T13:53:52+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-05-04T13:35:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3d3ef36e977b5f5a4153b8df6447f3f73e4726e3'/>
<id>urn:sha1:3d3ef36e977b5f5a4153b8df6447f3f73e4726e3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Check that arg to object.__new__ is a user-defined type.</title>
<updated>2015-05-04T10:08:40+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-03T22:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=47b9809d231c4359c56316130a76f13de2b907f7'/>
<id>urn:sha1:47b9809d231c4359c56316130a76f13de2b907f7</id>
<content type='text'>
Addresses issue #1203.
</content>
</entry>
<entry>
<title>py: Support conversion of bignum to bytes.</title>
<updated>2015-04-25T22:16:39+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-25T22:16:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=271d18eb08ec488ee45f8e6cd852e8236074f082'/>
<id>urn:sha1:271d18eb08ec488ee45f8e6cd852e8236074f082</id>
<content type='text'>
This gets int.to_bytes working for bignum, and also struct.pack with 'q'
and 'Q' args on 32-bit machines.

Addresses issue #1155.
</content>
</entry>
</feed>
