<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/builtin.c, branch 5.3.x</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.x</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.x'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-12-09T16:19:48+00:00</updated>
<entry>
<title>py: Allow builtins to be overridden.</title>
<updated>2014-12-09T16:19:48+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-12-09T16:19:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=78d702c300ae9f175e6f47f805a37cdfe5b81898'/>
<id>urn:sha1:78d702c300ae9f175e6f47f805a37cdfe5b81898</id>
<content type='text'>
This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
which, when enabled, allows to override all names within the builtins
module.  A builtins override dict is created the first time the user
assigns to a name in the builtins model, and then that dict is searched
first on subsequent lookups.  Note that this implementation doesn't
allow deleting of names.

This patch also does some refactoring of builtins code, creating the
modbuiltins.c file.

Addresses issue #959.
</content>
</entry>
<entry>
<title>builtin: Reimplement __repl_print__() in terms of print().</title>
<updated>2014-11-27T17:38:03+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-11-26T19:17:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1eca32836d558287b404e84a8364d9088e07695a'/>
<id>urn:sha1:1eca32836d558287b404e84a8364d9088e07695a</id>
<content type='text'>
Before, __repl_print__() used libc printf(), while print() used uPy streams
and own printf() implementation. This led to subtle, but confusing
differences in output when just doing "foo" vs "print(foo)" on interactive
prompt.
</content>
</entry>
<entry>
<title>py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled.</title>
<updated>2014-11-06T17:36:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-06T17:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1e9a92f84fb58db610e20b766052292edc28d25b'/>
<id>urn:sha1:1e9a92f84fb58db610e20b766052292edc28d25b</id>
<content type='text'>
Going from MICROPY_ERROR_REPORTING_NORMAL to
MICROPY_ERROR_REPORTING_TERSE now saves 2020 bytes ROM for ARM Thumb2,
and 2200 bytes ROM for 32-bit x86.

This is about a 2.5% code size reduction for bare-arm.
</content>
</entry>
<entry>
<title>py: Add builtin round function.</title>
<updated>2014-10-31T11:28:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-31T11:28:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1559a978100762efd84666befd134d5975ae8d4b'/>
<id>urn:sha1:1559a978100762efd84666befd134d5975ae8d4b</id>
<content type='text'>
Addresses issue #934.
</content>
</entry>
<entry>
<title>py: Fix smallint modulo with negative arguments.</title>
<updated>2014-10-22T22:05:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-22T22:05:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e72be1b999a3337f74a8e5a8f61705666f834d2b'/>
<id>urn:sha1:e72be1b999a3337f74a8e5a8f61705666f834d2b</id>
<content type='text'>
Addresses issue #927.
</content>
</entry>
<entry>
<title>py: Convert [u]int to mp_[u]int_t where appropriate.</title>
<updated>2014-10-03T17:44:14+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-03T17:44:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=42f3de924bc3e285490f5f293955bc6d7e5a0edf'/>
<id>urn:sha1:42f3de924bc3e285490f5f293955bc6d7e5a0edf</id>
<content type='text'>
Addressing issue #50.
</content>
</entry>
<entry>
<title>py: Fix build error when float disabled; add test for divmod.</title>
<updated>2014-09-13T18:58:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-09-13T18:58:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=83695596ed4fe3ad990b68cc5ff52c26caf2174d'/>
<id>urn:sha1:83695596ed4fe3ad990b68cc5ff52c26caf2174d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Implement divmod, % and proper // for floating point.</title>
<updated>2014-09-13T17:43:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-09-13T17:43:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8594ce228011e6264f59ade4ff8a7f2bfa90a649'/>
<id>urn:sha1:8594ce228011e6264f59ade4ff8a7f2bfa90a649</id>
<content type='text'>
Tested and working on unix and pyboard.
</content>
</entry>
<entry>
<title>py: Rename mp_builtin_id to mp_obj_id and make it public.</title>
<updated>2014-09-07T19:41:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-22T20:48:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c7687ad7e6969bd72751741c5d8a5673d40fa51c'/>
<id>urn:sha1:c7687ad7e6969bd72751741c5d8a5673d40fa51c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h.</title>
<updated>2014-08-30T13:59:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-30T13:59:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4abff7500fb05430a2ce952a2430d4d0ba16047e'/>
<id>urn:sha1:4abff7500fb05430a2ce952a2430d4d0ba16047e</id>
<content type='text'>
Part of code cleanup, working towards resolving issue #50.
</content>
</entry>
</feed>
