<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/obj.c, branch 6.1.0</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=6.1.0</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=6.1.0'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2020-12-23T00:13:02+00:00</updated>
<entry>
<title>A couple sleep fixes</title>
<updated>2020-12-23T00:13:02+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-12-23T00:13:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1fca297a2d2bfefb1cdef3ecbac05f54d15e08eb'/>
<id>urn:sha1:1fca297a2d2bfefb1cdef3ecbac05f54d15e08eb</id>
<content type='text'>
* Better messaging when code is stopped by an auto-reload.
* Auto-reload works during sleeps on ESP32-S2. Ticks wake up the
  main task each time.
* Made internal naming consistent. CamelCase Python names are NOT
  separated by an underscore.
</content>
</entry>
<entry>
<title>Add alarm.pin that wakes on pin level</title>
<updated>2020-12-16T02:12:59+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-12-09T01:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1ad49d9a18224ecc53d8f49d0675a369274556ce'/>
<id>urn:sha1:1ad49d9a18224ecc53d8f49d0675a369274556ce</id>
<content type='text'>
Fixes #3787
</content>
</entry>
<entry>
<title>Revert "Prevent exceptions from accumulating in REPL"</title>
<updated>2020-11-28T22:10:17+00:00</updated>
<author>
<name>Christian Walther</name>
<email>cwalther@gmx.ch</email>
</author>
<published>2020-11-28T22:09:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bde1c4166d08bd9530b1dc4dcf3bfff7f3e33bca'/>
<id>urn:sha1:bde1c4166d08bd9530b1dc4dcf3bfff7f3e33bca</id>
<content type='text'>
This reverts commit 0cd951fb73198f5c3dd03ea0463382edac0d3d4d.

It is not a correct solution because it prevents printing the same exception twice.
</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>Prevent exceptions from accumulating in REPL</title>
<updated>2020-11-16T16:36:05+00:00</updated>
<author>
<name>root</name>
<email>siehputz@gmail.com</email>
</author>
<published>2020-11-16T16:36:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0cd951fb73198f5c3dd03ea0463382edac0d3d4d'/>
<id>urn:sha1:0cd951fb73198f5c3dd03ea0463382edac0d3d4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mp_obj_print_helper: Handle a ctrl-c that comes in during printing</title>
<updated>2020-08-25T16:47:50+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@unpythonic.net</email>
</author>
<published>2020-08-25T16:46:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c0753c1afb09dab873da02e6f98a492cb913f0e9'/>
<id>urn:sha1:c0753c1afb09dab873da02e6f98a492cb913f0e9</id>
<content type='text'>
In #2689, hitting ctrl-c during the printing of an object with a lot of sub-objects could cause the screen to stop updating (without showing a KeyboardInterrupt).  This makes the printing of such objects acutally interruptable, and also correctly handles the KeyboardInterrupt:

```
&gt;&gt;&gt; l = ["a" * 100] * 200
&gt;&gt;&gt; l
['aaaaaaaaaaaaaaaaaaaaaa...aaaaaaaaaaa', Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
KeyboardInterrupt:
&gt;&gt;&gt;
```
</content>
</entry>
<entry>
<title>py: mp_obj_get_type_qstr as macro saves 24 bytes</title>
<updated>2020-08-04T19:45:45+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-08-04T19:05:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=65e26f4a068129662c9793fd070530a35cc568b1'/>
<id>urn:sha1:65e26f4a068129662c9793fd070530a35cc568b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Combine some "can't convert" messages</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:41:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=024c8da57869b2aa49004f091520aaf5dacb26e6'/>
<id>urn:sha1:024c8da57869b2aa49004f091520aaf5dacb26e6</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>Use qstrs to save an additional 4 bytes</title>
<updated>2020-08-04T19:45:45+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-08-04T15:59:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c37a25f0e5d1c877909855f6a3294e43b854bbbd'/>
<id>urn:sha1:c37a25f0e5d1c877909855f6a3294e43b854bbbd</id>
<content type='text'>
</content>
</entry>
</feed>
