<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests, branch v1.9.3</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.3</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.3'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-10-27T17:06:35+00:00</updated>
<entry>
<title>py/objtype: Define all special methods if requested.</title>
<updated>2017-10-27T17:06:35+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-10-21T10:55:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9b9dbc58155209e07ab7b9d63d63e5e24db5950c'/>
<id>urn:sha1:9b9dbc58155209e07ab7b9d63d63e5e24db5950c</id>
<content type='text'>
If MICROPY_PY_ALL_SPECIAL_METHODS is defined, actually define all special
methods (still subject to gating by e.g. MICROPY_PY_REVERSE_SPECIAL_METHODS).

This adds quite a number of qstr's, so should be used sparingly.
</content>
</entry>
<entry>
<title>tests/net_inet: Update tls test to work with CPython and incl new site.</title>
<updated>2017-10-26T01:29:24+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-26T01:29:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f36975b6792f6b702dc9184adcdb6e0d89ce23b4'/>
<id>urn:sha1:f36975b6792f6b702dc9184adcdb6e0d89ce23b4</id>
<content type='text'>
CPython only supports the server_hostname keyword arg via the SSLContext
object, so use that instead of the top-level ssl.wrap_socket.  This allows
the test to run on CPython the same as uPy.

Also add the "Host:" header to correctly make a GET request (for URLs that
are hosted on other servers).  This is not strictly needed to test the SSL
connection but helps to debug things when printing the response.
</content>
</entry>
<entry>
<title>py/emitnative: Implement floor-division and modulo for viper emitter.</title>
<updated>2017-10-11T07:54:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-11T07:54:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a3afa8cfc46913f471d5eb55da4ae22dee92c25f'/>
<id>urn:sha1:a3afa8cfc46913f471d5eb55da4ae22dee92c25f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/formatfloat: Don't print the negative sign of a NaN value.</title>
<updated>2017-10-10T05:01:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-04T12:15:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=08a196697c5dfb8cbe3b3e85c1c5f94e3a27804c'/>
<id>urn:sha1:08a196697c5dfb8cbe3b3e85c1c5f94e3a27804c</id>
<content type='text'>
NaN may have the sign bit set but it has no meaning, so don't print it out.
</content>
</entry>
<entry>
<title>py/modmath: Add full checks for math domain errors.</title>
<updated>2017-10-10T04:57:45+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-04T10:00:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=25e140652b946e9a136a16a9831c0b18f1285702'/>
<id>urn:sha1:25e140652b946e9a136a16a9831c0b18f1285702</id>
<content type='text'>
This patch changes how most of the plain math functions are implemented:
there are now two generic math wrapper functions that take a pointer to a
math function (like sin, cos) and perform the necessary conversion to and
from MicroPython types.  This helps to reduce code size.  The generic
functions can also check for math domain errors in a generic way, by
testing if the result is NaN or infinity combined with finite inputs.

The result is that, with this patch, all math functions now have full
domain error checking (even gamma and lgamma) and code size has decreased
for most ports.  Code size changes in bytes for those with the math module
are:

   unix x64:  -432
unix nanbox:  -792
      stm32:   -88
    esp8266:   +12

Tests are also added to check domain errors are handled correctly.
</content>
</entry>
<entry>
<title>tests/run-tests: Close device under test using "finally".</title>
<updated>2017-10-07T12:49:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2017-10-07T12:49:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=71c1a05d88c9ac84212d164458c5a501e59be389'/>
<id>urn:sha1:71c1a05d88c9ac84212d164458c5a501e59be389</id>
<content type='text'>
We want to close communication object even if there were exceptions
somewhere in the code. This is important for --device exec:/execpty:
which may otherwise leave processing running in the background.
</content>
</entry>
<entry>
<title>tests/extmod: Add test for '-' in character class in regex.</title>
<updated>2017-10-05T00:33:49+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-05T00:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=98dd126e9818309e4ec9b561e7b6b9f7fa039cb9'/>
<id>urn:sha1:98dd126e9818309e4ec9b561e7b6b9f7fa039cb9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Clean up unary and binary enum list to keep groups together.</title>
<updated>2017-10-04T23:49:44+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-03T12:34:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0864a6957fe4717c3ec40ceeb373b19614a18434'/>
<id>urn:sha1:0864a6957fe4717c3ec40ceeb373b19614a18434</id>
<content type='text'>
2 non-bytecode binary ops (NOT_IN and IN_NOT) are moved out of the
bytecode group, so this change will change the bytecode format.
</content>
</entry>
<entry>
<title>py/objstr: Make empty bytes object have a null-terminating byte.</title>
<updated>2017-10-04T06:59:22+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-04T06:59:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=dfa563c71fead671931e91b786cd649eed517f92'/>
<id>urn:sha1:dfa563c71fead671931e91b786cd649eed517f92</id>
<content type='text'>
Because a lot of string processing functions assume there is a null
terminating byte, so they can work in an efficient way.

Fixes issue #3334.
</content>
</entry>
<entry>
<title>py/objset: Include the failed key in a KeyError raised from set.remove.</title>
<updated>2017-10-03T07:03:06+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-03T07:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1394258f378e50966daa1d83053067eeee8ef07d'/>
<id>urn:sha1:1394258f378e50966daa1d83053067eeee8ef07d</id>
<content type='text'>
</content>
</entry>
</feed>
