<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/modsys.c, branch v1.4.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-02-07T17:24:10+00:00</updated>
<entry>
<title>py: Put mp_sys_path, mp_sys_argv and gc_collected in mp_state_ctx_t.</title>
<updated>2015-02-07T17:24:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-07T17:24:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e1e359ff59d6bbf09441cc1f3965be63f1046182'/>
<id>urn:sha1:e1e359ff59d6bbf09441cc1f3965be63f1046182</id>
<content type='text'>
Without mp_sys_path and mp_sys_argv in the root pointer section of the
state, their memory was being incorrectly collected by GC.
</content>
</entry>
<entry>
<title>py: Can compile with -Wmissing-declarations and -Wmissing-prototypes.</title>
<updated>2015-01-12T22:30:49+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-12T22:30:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cd3420740909b3b6a2140b613b591b7556b417a2'/>
<id>urn:sha1:cd3420740909b3b6a2140b613b591b7556b417a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Move to guarded includes, everywhere in py/ core.</title>
<updated>2015-01-01T20:32:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-01T20:27:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=51dfcb4bb7613ed164952712d9a5235a7b833cde'/>
<id>urn:sha1:51dfcb4bb7613ed164952712d9a5235a7b833cde</id>
<content type='text'>
Addresses issue #1022.
</content>
</entry>
<entry>
<title>modsys: Add sys.print_exception(exc, file=sys.stdout) function.</title>
<updated>2014-12-08T20:25:49+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-12-06T12:29:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=46c3ab20049af16e97863e90e5761fae329f872a'/>
<id>urn:sha1:46c3ab20049af16e97863e90e5761fae329f872a</id>
<content type='text'>
The function is modeled after traceback.print_exception(), but unbloated,
and put into existing module to save overhead on adding another module.
Compliant traceback.print_exception() is intended to be implemented in
micropython-lib in terms of sys.print_exception().

This change required refactoring mp_obj_print_exception() to take pfenv_t
interface arguments.

Addresses #751.
</content>
</entry>
<entry>
<title>Use MP_DEFINE_CONST_DICT macro to define module dicts.</title>
<updated>2014-11-29T14:39:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-29T14:39:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3b603f29ec093b77b6fad72d77becd5375310637'/>
<id>urn:sha1:3b603f29ec093b77b6fad72d77becd5375310637</id>
<content type='text'>
This is just a clean-up of the code.  Generated code is exactly the
same.
</content>
</entry>
<entry>
<title>py: Move definition of mp_sys_exit to core.</title>
<updated>2014-09-15T14:53:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-09-15T14:53:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b92cbe612913a7c9d066c34912a3f77fe6392b2b'/>
<id>urn:sha1:b92cbe612913a7c9d066c34912a3f77fe6392b2b</id>
<content type='text'>
sys.exit always raises SystemExit so doesn't need a special
implementation for each port.  If C exit() is really needed, use the
standard os._exit function.

Also initialise mp_sys_path and mp_sys_argv in teensy port.
</content>
</entry>
<entry>
<title>doc: Fix up a few docs in sys module.</title>
<updated>2014-08-10T16:53:43+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-10T16:53:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4ef26c14b1182da7075b65b995e7da7b0a94961d'/>
<id>urn:sha1:4ef26c14b1182da7075b65b995e7da7b0a94961d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>doc: Document gc, sys, math, cmath.</title>
<updated>2014-08-10T16:50:28+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-10T16:50:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=30dd23aa7f2c7f142bab66d189f7f479091cf161'/>
<id>urn:sha1:30dd23aa7f2c7f142bab66d189f7f479091cf161</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Make print() accept "file" argument, and actually print to stream.</title>
<updated>2014-07-19T18:27:22+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-07-13T20:07:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cb66f41ebc4980f4e6b7543bece19e3b9daac25c'/>
<id>urn:sha1:cb66f41ebc4980f4e6b7543bece19e3b9daac25c</id>
<content type='text'>
And not system printf(), like it was before. For this, move pfenv_printf()
from stmhal port to py/.
</content>
</entry>
<entry>
<title>py: Implement sys.maxsize, standard way to check platform "bitness".</title>
<updated>2014-07-03T15:09:36+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-07-03T13:50:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4e0eeebdc2b452277c24f554c444f0cc0de9e4ea'/>
<id>urn:sha1:4e0eeebdc2b452277c24f554c444f0cc0de9e4ea</id>
<content type='text'>
Implementing it as a static constant is a bit peculiar and require cooperation
from long int implementation.
</content>
</entry>
</feed>
