<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/scope.c, branch v1.0-rc1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0-rc1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0-rc1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-04-27T14:50:52+00:00</updated>
<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, 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: Clean up includes.</title>
<updated>2014-03-17T09:43:40+00:00</updated>
<author>
<name>xbe</name>
<email>xbe@machine</email>
</author>
<published>2014-03-16T07:14:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=efe34223945a5d27a7ae9445d0793d6330cd2411'/>
<id>urn:sha1:efe34223945a5d27a7ae9445d0793d6330cd2411</id>
<content type='text'>
Remove unnecessary includes. Add includes that improve portability.
</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>Allow qstr's with non-ident chars, construct good identifier for them.</title>
<updated>2014-01-24T00:34:22+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-01-23T22:22:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ab5d08280bda4e8c96a0729ae99400e1a8bf08a5'/>
<id>urn:sha1:ab5d08280bda4e8c96a0729ae99400e1a8bf08a5</id>
<content type='text'>
Also, add qstr's for string appearing in unix REPL loop, gross effect
being less allocations for each command run.
</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>Revamp qstrs: they now include length and hash.</title>
<updated>2014-01-21T21:40:13+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-01-21T21:40:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55baff4c9bcbc001cbb8972c289ebfa356d4665b'/>
<id>urn:sha1:55baff4c9bcbc001cbb8972c289ebfa356d4665b</id>
<content type='text'>
Can now have null bytes in strings.  Can define ROM qstrs per port using
qstrdefsport.h
</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>
