<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/scope.h, branch v1.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-05-03T22:27:38+00:00</updated>
<entry>
<title>Add license header to (almost) all files.</title>
<updated>2014-05-03T22:27:38+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-03T22:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=04b9147e150d2d6fa3750f312fe328b6a71c1b28'/>
<id>urn:sha1:04b9147e150d2d6fa3750f312fe328b6a71c1b28</id>
<content type='text'>
Blanket wide to all .c and .h files.  Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.

Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
</content>
</entry>
<entry>
<title>py: Implement keyword-only args.</title>
<updated>2014-04-27T14:50:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-27T14:50:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2827d62e8b5790b2d770b9ce54e25cd56e949f20'/>
<id>urn:sha1:2827d62e8b5790b2d770b9ce54e25cd56e949f20</id>
<content type='text'>
Implements 'def f(*, a)' and 'def f(*a, b)', but not default
keyword-only args, eg 'def f(*, a=1)'.

Partially addresses issue #524.
</content>
</entry>
<entry>
<title>py: Remove unique_codes from emitglue.c.  Replace with pointers.</title>
<updated>2014-04-13T10:04:33+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-13T10:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=df8127a17eeb3057e820180e318ec3d915111b6a'/>
<id>urn:sha1:df8127a17eeb3057e820180e318ec3d915111b6a</id>
<content type='text'>
Attempt to address issue #386.  unique_code_id's have been removed and
replaced with a pointer to the "raw code" information.  This pointer is
stored in the actual byte code (aligned, so the GC can trace it), so
that raw code (ie byte code, native code and inline assembler) is kept
only for as long as it is needed.  In memory it's now like a tree: the
outer module's byte code points directly to its children's raw code.  So
when the outer code gets freed, if there are no remaining functions that
need the raw code, then the children's code gets freed as well.

This is pretty much like CPython does it, except that CPython stores
indexes in the byte code rather than machine pointers.  These indices
index the per-function constant table in order to find the relevant
code.
</content>
</entry>
<entry>
<title>py: Properly implement deletion of locals and derefs, and detect errors.</title>
<updated>2014-04-09T14:26:46+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-09T14:26:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2bf7c092225645d8c5b15e536afdce39e3593e42'/>
<id>urn:sha1:2bf7c092225645d8c5b15e536afdce39e3593e42</id>
<content type='text'>
Needed to reinstate 2 delete opcodes, to specifically check that a local
is not deleted twice.
</content>
</entry>
<entry>
<title>py, compiler: Turn id_info_t.param into a set of flags.</title>
<updated>2014-04-09T13:42:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-09T13:42:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=11d8cd54c992eee55f27d3779738626bdc095c03'/>
<id>urn:sha1:11d8cd54c992eee55f27d3779738626bdc095c03</id>
<content type='text'>
So we can add more flags.
</content>
</entry>
<entry>
<title>py, compiler: Clean up and compress scope/compile structures.</title>
<updated>2014-04-09T11:27:39+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-09T11:27:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=78035b995ff7bd518cc1291aa70c966b53510fd9'/>
<id>urn:sha1:78035b995ff7bd518cc1291aa70c966b53510fd9</id>
<content type='text'>
Convert int types to uint where sensible, and then to uint8_t or
uint16_t where possible to reduce RAM usage.
</content>
</entry>
<entry>
<title>py: Calculate maximum exception stack size in compiler.</title>
<updated>2014-03-27T10:55:21+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-03-27T10:55:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8dcc0c79248a413f01f1d669b99d51e2519c5267'/>
<id>urn:sha1:8dcc0c79248a413f01f1d669b99d51e2519c5267</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Pass all scope flags through to runtime.</title>
<updated>2014-02-15T19:33:11+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-02-15T19:33:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8725f8f7debb9b798783f5aae291d00a3950d8fc'/>
<id>urn:sha1:8725f8f7debb9b798783f5aae291d00a3950d8fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mp_compile(): Properly free module_scope and all nested scopes.</title>
<updated>2014-01-23T21:16:18+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-01-23T21:05:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=fd31358505dd794feb153c00bec6d4ee92c851d1'/>
<id>urn:sha1:fd31358505dd794feb153c00bec6d4ee92c851d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Add module/function/class name to exceptions.</title>
<updated>2014-01-19T11:48:48+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-01-19T11:48:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cbd2f7482c8bf457cc17da763859dbba6e03e2a2'/>
<id>urn:sha1:cbd2f7482c8bf457cc17da763859dbba6e03e2a2</id>
<content type='text'>
Exceptions know source file, line and block name.

Also tidy up some debug printing functions and provide a global
flag to enable/disable them.
</content>
</entry>
</feed>
