<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/basics/builtin_hash.py, branch 3.0.0-beta.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=3.0.0-beta.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=3.0.0-beta.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-03-03T21:13:27+00:00</updated>
<entry>
<title>tests/basic: Split tests into working with small ints and not working.</title>
<updated>2017-03-03T21:13:27+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-03-03T21:13:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3ab6aa3a6d0506e805caa19369bef279c1c789b4'/>
<id>urn:sha1:3ab6aa3a6d0506e805caa19369bef279c1c789b4</id>
<content type='text'>
Tests which don't work with small ints are suffixed with _intbig.py. Some
of these may still work with long long ints and need to be reclassified
later.
</content>
</entry>
<entry>
<title>tests/basics: Add more tuple tests to improve coverage testing.</title>
<updated>2016-08-15T00:46:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-08-15T00:46:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3c82d1d34b6450e73816e206fa5a5d3330a4df48'/>
<id>urn:sha1:3c82d1d34b6450e73816e206fa5a5d3330a4df48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Add further tests for mpz code.</title>
<updated>2015-10-01T17:49:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-10-01T17:49:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a81539db25d443826e5247fefda8ae73bad64056'/>
<id>urn:sha1:a81539db25d443826e5247fefda8ae73bad64056</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>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>tests: Add some tests to improve coverage.</title>
<updated>2015-01-29T00:44:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-29T00:44:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12c66be2b8baab093c7be5e2108d2767c9779a69'/>
<id>urn:sha1:12c66be2b8baab093c7be5e2108d2767c9779a69</id>
<content type='text'>
Used gcov to find some parts of vm.c, runtime.c, obj.c that were not
covered by any tests.  Still need to use gcov more thoroughly.
</content>
</entry>
<entry>
<title>tests: Add test for hash of user defined class.</title>
<updated>2014-11-15T18:30:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-15T18:30:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4df85e49d48a76246d97383ac6a5d63e1ce2be60'/>
<id>urn:sha1:4df85e49d48a76246d97383ac6a5d63e1ce2be60</id>
<content type='text'>
</content>
</entry>
</feed>
