<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests/cmdline/cmd_showbc.py.exp, branch v1.8.6</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.6'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-10-17T00:23:37+00:00</updated>
<entry>
<title>tests/cmdline: Improve coverage test for printing bytecode.</title>
<updated>2016-10-17T00:23:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-17T00:23:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=453c2e8f55132d92933f2de0308166730576ecc4'/>
<id>urn:sha1:453c2e8f55132d92933f2de0308166730576ecc4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Fix expected output of verbose cmdline test</title>
<updated>2016-10-05T10:58:50+00:00</updated>
<author>
<name>stijn</name>
<email>stijn@ignitron.net</email>
</author>
<published>2016-10-05T10:34:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7f19b1c3eb488a8466fd1fca0530dba6a02d9f1a'/>
<id>urn:sha1:7f19b1c3eb488a8466fd1fca0530dba6a02d9f1a</id>
<content type='text'>
The output might contain more than one line ending in 5b so properly skip
everything until the next known point.
This fixes test failures in appveyor debug builds.
</content>
</entry>
<entry>
<title>tests/cmdline/cmd_showbc: Fix test now that 1 value is stored on stack.</title>
<updated>2016-09-27T03:22:06+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-27T03:22:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f65e4f0b8fbd3992da6cf8a69e89e3bad3001d36'/>
<id>urn:sha1:f65e4f0b8fbd3992da6cf8a69e89e3bad3001d36</id>
<content type='text'>
This corresponds to the change in the way exception values are stored on
the Python value stack.
</content>
</entry>
<entry>
<title>tests: Get cmdline verbose tests running again.</title>
<updated>2016-09-20T01:33:19+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-09-20T01:33:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bb954d80a4bd467fc321df90cea2b248a90d1570'/>
<id>urn:sha1:bb954d80a4bd467fc321df90cea2b248a90d1570</id>
<content type='text'>
The showbc function now no longer uses the system printf so works
correctly.
</content>
</entry>
<entry>
<title>py: Remove mp_load_const_bytes and instead load precreated bytes object.</title>
<updated>2015-06-25T14:42:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-06-25T14:42:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=59fba2d6ea31c134c9c0b88dc73cd25b236f167c'/>
<id>urn:sha1:59fba2d6ea31c134c9c0b88dc73cd25b236f167c</id>
<content type='text'>
Previous to this patch each time a bytes object was referenced a new
instance (with the same data) was created.  With this patch a single
bytes object is created in the compiler and is loaded directly at execute
time as a true constant (similar to loading bignum and float objects).
This saves on allocating RAM and means that bytes objects can now be
used when the memory manager is locked (eg in interrupts).

The MP_BC_LOAD_CONST_BYTES bytecode was removed as part of this.

Generated bytecode is slightly larger due to storing a pointer to the
bytes object instead of the qstr identifier.

Code size is reduced by about 60 bytes on Thumb2 architectures.
</content>
</entry>
<entry>
<title>py: Add MP_BINARY_OP_DIVMOD to simplify and consolidate divmod builtin.</title>
<updated>2015-06-13T22:36:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-06-13T21:00:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c5029bcbf37fd1a3fb145d9fa9e4a5094478f17b'/>
<id>urn:sha1:c5029bcbf37fd1a3fb145d9fa9e4a5094478f17b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function.</title>
<updated>2015-05-12T21:46:02+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-11T12:25:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c2a4e4effc81d8ab21bb014e34355643e5ca0da2'/>
<id>urn:sha1:c2a4e4effc81d8ab21bb014e34355643e5ca0da2</id>
<content type='text'>
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as
the operator argument.  Hashing for int, str and bytes still go via
fast-path in mp_unary_op since they are the most common objects which
need to be hashed.

This lead to quite a bit of code cleanup, and should be more efficient
if anything.  It saves 176 bytes code space on Thumb2, and 360 bytes on
x86.

The only loss is that the error message "unhashable type" is now the
more generic "unsupported type for __hash__".
</content>
</entry>
<entry>
<title>py: Fix naming of function arguments when function is a closure.</title>
<updated>2015-05-06T12:55:33+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-06T12:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9a42eb541eb426a04bb0541ccf0e26ce82bdcb22'/>
<id>urn:sha1:9a42eb541eb426a04bb0541ccf0e26ce82bdcb22</id>
<content type='text'>
Addresses issue #1226.
</content>
</entry>
<entry>
<title>tests: Fix cmd_showbc now that LOAD_CONST_ELLIPSIS bytecode is gone.</title>
<updated>2015-05-05T22:58:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-05T22:58:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=367d4d10983c0047d2f1c91ebe44a45e5f2bbf65'/>
<id>urn:sha1:367d4d10983c0047d2f1c91ebe44a45e5f2bbf65</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Modify bytecode "with" behaviour so it doesn't use any heap.</title>
<updated>2015-04-24T00:52:28+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-24T00:52:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8c1d23a0e20da2903f363448e8042e5d08caabe7'/>
<id>urn:sha1:8c1d23a0e20da2903f363448e8042e5d08caabe7</id>
<content type='text'>
Before this patch a "with" block needed to create a bound method object
on the heap for the __exit__ call.  Now it doesn't because we use
load_method instead of load_attr, and save the method+self on the stack.
</content>
</entry>
</feed>
