<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/misc.h, branch v1.0.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.0.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-05-10T16:49:07+00:00</updated>
<entry>
<title>objstr: Implement .lower() and .upper().</title>
<updated>2014-05-10T16:49:07+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-10T16:47:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=69135219111be239d6088457604dcfc185e6ceee'/>
<id>urn:sha1:69135219111be239d6088457604dcfc185e6ceee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Improve handling of memory error in parser.</title>
<updated>2014-05-10T16:36:41+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-05-10T16:36:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1b82e9af5c9b67cae8f7a35abc2dee3989fbdc06'/>
<id>urn:sha1:1b82e9af5c9b67cae8f7a35abc2dee3989fbdc06</id>
<content type='text'>
Parser shouldn't raise exceptions, so needs to check when memory
allocation fails.  This patch does that for the initial set up of the
parser state.

Also, we now put the parser object on the stack.  It's small enough to
go there instead of on the heap.

This partially addresses issue #558.
</content>
</entry>
<entry>
<title>py, unix: Add -v option, print bytecode dump if used.</title>
<updated>2014-05-04T21:57:00+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-05-04T21:50:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6b344d781666240c396659d0c4a012412a9b32da'/>
<id>urn:sha1:6b344d781666240c396659d0c4a012412a9b32da</id>
<content type='text'>
This will work if MICROPY_DEBUG_PRINTERS is defined, which is only for
unix/windows ports. This makes it convenient to user uPy normally, but
easily get bytecode dump on the spot if needed, without constant recompiles
back and forth.

TODO: Add more useful debug output, adjust verbosity level on which
specifically bytecode dump happens.
</content>
</entry>
<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>Add ARRAY_SIZE macro, and use it where possible.</title>
<updated>2014-04-26T09:47:29+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-26T09:47:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6d3c5e4301df363055dc256e6692c610e4d0b918'/>
<id>urn:sha1:6d3c5e4301df363055dc256e6692c610e4d0b918</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Check explicitly for memory allocation failure in parser.</title>
<updated>2014-04-10T14:27:31+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-10T14:27:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=58ba4c3b4c12e9bf6b8731fd26e0c9cac527122f'/>
<id>urn:sha1:58ba4c3b4c12e9bf6b8731fd26e0c9cac527122f</id>
<content type='text'>
Previously, a failed malloc/realloc would throw an exception, which was
not caught.  I think it's better to keep the parser free from NLR
(exception throwing), hence this patch.
</content>
</entry>
<entry>
<title>py: Add emergency exception object for when heap allocation fails.</title>
<updated>2014-04-10T13:38:25+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-10T13:38:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f0954e3fac03c35a91e544c2ffddc12b82d7f8a0'/>
<id>urn:sha1:f0954e3fac03c35a91e544c2ffddc12b82d7f8a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve GC finalisation code; add option to disable it.</title>
<updated>2014-04-05T19:35:48+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-05T19:35:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=12bab72d93498958ddef26c1a2dd7c69a9f9cf8d'/>
<id>urn:sha1:12bab72d93498958ddef26c1a2dd7c69a9f9cf8d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #425 from iabdalkader/del</title>
<updated>2014-04-05T17:49:39+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-05T17:49:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8123a3339dc7381a079afa90649ce140075eb2e2'/>
<id>urn:sha1:8123a3339dc7381a079afa90649ce140075eb2e2</id>
<content type='text'>
Implement del</content>
</entry>
<entry>
<title>py: Add m_malloc_fail function to handle memory allocation error.</title>
<updated>2014-04-04T10:52:59+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-04-04T10:52:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6902eeda259a5ed8fe3a5ce5cb19ba9207549d33'/>
<id>urn:sha1:6902eeda259a5ed8fe3a5ce5cb19ba9207549d33</id>
<content type='text'>
A malloc/realloc fail now throws MemoryError.
</content>
</entry>
</feed>
