<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/runtime.c, branch 6.2.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=6.2.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=6.2.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2021-03-15T13:57:36+00:00</updated>
<entry>
<title>run code formatting script</title>
<updated>2021-03-15T13:57:36+00:00</updated>
<author>
<name>microDev</name>
<email>70126934+microDev1@users.noreply.github.com</email>
</author>
<published>2021-03-15T13:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a52eb88031620a81521b937f2a0651dbac2bb350'/>
<id>urn:sha1:a52eb88031620a81521b937f2a0651dbac2bb350</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Always use preprocessor for MICROPY_ERROR_REPORTING</title>
<updated>2020-11-19T22:18:52+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-11-19T22:18:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b2b8520880e9d458adbd279a34b831f8d6b68d40'/>
<id>urn:sha1:b2b8520880e9d458adbd279a34b831f8d6b68d40</id>
<content type='text'>
This ensures that only the translate("") alternative that will be used
is seen after preprocessing.  Improves the quality of the Huffman encoding
and reduces binary size slightly.

Also makes one "enhanced" error message only occur when ERROR_REPORTING_DETAILED:
Instead of the word-for-word python3 error message
"Type object has no attribute '%q'", the message will be
"'type' object has no attribute '%q'".  Also reduces binary size.
(that's rolled into this commit as it was right next to a change to
use the preprocessor for MICROPY_ERROR_REPORTING)

Note that the odd semicolon after "value_error:" in parsenum.c is necessary
due to a detail of the C grammar, in which a declaration cannot follow
a label directly.
</content>
</entry>
<entry>
<title>Introduce, use mp_raise_arg1</title>
<updated>2020-11-19T22:15:06+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-11-19T22:13:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c06fc8e02dc7c17e827e3fe736dc7226d7819452'/>
<id>urn:sha1:c06fc8e02dc7c17e827e3fe736dc7226d7819452</id>
<content type='text'>
This raises an exception with a given object value.  Saves a bit of
code size.
</content>
</entry>
<entry>
<title>Make socket reads interruptable</title>
<updated>2020-08-21T18:00:02+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-08-21T18:00:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=701e80a0252dbb63d64830a8d55f76b6296cb647'/>
<id>urn:sha1:701e80a0252dbb63d64830a8d55f76b6296cb647</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add basic error handling</title>
<updated>2020-08-19T21:23:28+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-08-19T00:06:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=eb8b42aff1e887125dda56bafd2b52312c1c7e05'/>
<id>urn:sha1:eb8b42aff1e887125dda56bafd2b52312c1c7e05</id>
<content type='text'>
</content>
</entry>
<entry>
<title>various: Use mp_obj_get_type_qstr more widely</title>
<updated>2020-08-04T19:45:45+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-08-04T16:15:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=89797fd3f9d36cd7e2e7a125dbbe02f598874060'/>
<id>urn:sha1:89797fd3f9d36cd7e2e7a125dbbe02f598874060</id>
<content type='text'>
This removes runtime allocations of the cstring version of the qstring.

It is not a size improvement
</content>
</entry>
<entry>
<title>py: introduce, use mp_raise_msg_vlist</title>
<updated>2020-08-04T18:34:29+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-08-01T18:05:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=67eb93fc98325697876f581c8e4879bd1b88368f'/>
<id>urn:sha1:67eb93fc98325697876f581c8e4879bd1b88368f</id>
<content type='text'>
This saves a very small amount of flash, 8 bytes on trinket_m0
</content>
</entry>
<entry>
<title>Combine similar strings to reduce size of translations</title>
<updated>2020-08-04T18:34:29+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-08-01T17:14:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=dddd25a776fb0d9c002c1b6b039e24bb3048e6ff'/>
<id>urn:sha1:dddd25a776fb0d9c002c1b6b039e24bb3048e6ff</id>
<content type='text'>
This is a slight trade-off with code size, in places where a "_varg"
mp_raise variant is now used.  The net savings on trinket_m0 is
just 32 bytes.

It also means that the translation will include the original English
text, and cannot be translated.  These are usually names of Python
types such as int, set, or dict or special values such as "inf" or
"Nan".
</content>
</entry>
<entry>
<title>Add license to some obvious files.</title>
<updated>2020-07-06T18:16:25+00:00</updated>
<author>
<name>Diego Elio Pettenò</name>
<email>flameeyes@flameeyes.com</email>
</author>
<published>2020-06-03T22:40:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=34b4993d63a6b576f29d624385c681f679b4124c'/>
<id>urn:sha1:34b4993d63a6b576f29d624385c681f679b4124c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>runtime: Improve error message when setting read-only property</title>
<updated>2020-03-20T22:57:28+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-03-20T22:48:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9d2270a979b3d3ce107a2ea830b6bf7beecb1fdc'/>
<id>urn:sha1:9d2270a979b3d3ce107a2ea830b6bf7beecb1fdc</id>
<content type='text'>
Formerly, if you wrote
   SPI.frequency = 0
you would get the sightly erroneous error message
   AttributeError: 'SPI' object has no attribute 'frequency'
In this case, a better message would read
   AttributeError: 'SPI' object cannot assign attribute 'frequency'

This new message will both be used in the case where the attribute doesn't
exist at all (and the object has no dynamic attributes; most instances of
built in types behave this way), or if the attribute exists but is
read-only.
</content>
</entry>
</feed>
