<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/objint.c, branch 6.2.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=6.2.0-beta.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=6.2.0-beta.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2020-09-06T14:53:16+00:00</updated>
<entry>
<title>core: add int.bit_length() when MICROPY_CYPTHON_COMPAT is enabled</title>
<updated>2020-09-06T14:53:16+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-04-28T14:13:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=20c2dd0c0853f3f1f6a5fa23887f08ec5cf77818'/>
<id>urn:sha1:20c2dd0c0853f3f1f6a5fa23887f08ec5cf77818</id>
<content type='text'>
This method of integer objects is needed for a port of python3's
decimal.py module.

MICROPY_CPYTHON_COMPAT is enabled by CIRCUITPY_FULL_BUILD.
</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>
<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>Implement to_bytes(..., signed=True)</title>
<updated>2020-02-14T20:12:20+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2020-02-14T20:12:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c592bd612ad8231f61681aa40cd51b6bbfcb307f'/>
<id>urn:sha1:c592bd612ad8231f61681aa40cd51b6bbfcb307f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use approx of original @godlygeek code for smallints; add tests</title>
<updated>2019-05-12T15:17:29+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-05-12T15:17:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8664a6574b4cb448df26bfaa0e12eb203cc5d759'/>
<id>urn:sha1:8664a6574b4cb448df26bfaa0e12eb203cc5d759</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Handle truth values; speed up smallint checks</title>
<updated>2019-05-12T04:10:53+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-05-12T04:10:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d103ac1d6325a075be3fafe812858584435f3144'/>
<id>urn:sha1:d103ac1d6325a075be3fafe812858584435f3144</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reverse int to bytes buffer overflow conditionals</title>
<updated>2019-05-10T02:03:12+00:00</updated>
<author>
<name>Matt Wozniski</name>
<email>godlygeek+git@gmail.com</email>
</author>
<published>2019-05-10T02:02:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1d0c61642b6fff2251c6b65a9fc18afd0ac255d5'/>
<id>urn:sha1:1d0c61642b6fff2251c6b65a9fc18afd0ac255d5</id>
<content type='text'>
Rather than jumping to a label when an overflow is known to have
occurred, return early when one is known not to have.
</content>
</entry>
<entry>
<title>Use OverflowError exception type for overflows</title>
<updated>2019-05-09T07:22:26+00:00</updated>
<author>
<name>Matt Wozniski</name>
<email>godlygeek+git@gmail.com</email>
</author>
<published>2019-05-09T07:20:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f325bd848b183f9b111b44e2fab2a9e6a366af3c'/>
<id>urn:sha1:f325bd848b183f9b111b44e2fab2a9e6a366af3c</id>
<content type='text'>
Initially I used one of the existing exception raise functions, but it's
more correct and not much more code to raise OverflowError instead.
</content>
</entry>
<entry>
<title>Add overflow checks for int to bytes conversions</title>
<updated>2019-05-09T07:22:25+00:00</updated>
<author>
<name>Matt Wozniski</name>
<email>godlygeek+git@gmail.com</email>
</author>
<published>2019-05-09T03:50:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=095c844004bcd8680a4bf68901adbd9cac6a4302'/>
<id>urn:sha1:095c844004bcd8680a4bf68901adbd9cac6a4302</id>
<content type='text'>
For both small and long integers, raise an exception if calling
struct.pack, adding an element to an array.array, or formatting an int
with int.to_bytes would overflow the requested size.
</content>
</entry>
</feed>
