<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/minimal, branch v1.4.3</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.3</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.3'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-05-05T23:02:58+00:00</updated>
<entry>
<title>pyexec: Make raw REPL work with event-driven version of pyexec.</title>
<updated>2015-05-05T23:02:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-05-05T23:02:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c98c128fe885e539ecd73843756340f8950115c8'/>
<id>urn:sha1:c98c128fe885e539ecd73843756340f8950115c8</id>
<content type='text'>
esp8266 port now has working raw and friendly REPL, as well as working
soft reset (CTRL-D at REPL, or raise SystemExit).

tools/pyboard.py now works with esp8266 port.
</content>
</entry>
<entry>
<title>py: Add attrtuple object, for space-efficient tuples with attr access.</title>
<updated>2015-04-21T14:14:24+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-21T14:14:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5aa311d33084c24262780cae0a65d748990ce7e1'/>
<id>urn:sha1:5aa311d33084c24262780cae0a65d748990ce7e1</id>
<content type='text'>
If you need the functionality of a namedtuple but will only make 1 or a
few instances, then use an attrtuple instead.
</content>
</entry>
<entry>
<title>py: Overhaul and simplify printf/pfenv mechanism.</title>
<updated>2015-04-16T14:30:16+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-09T22:56:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7f9d1d6ab923096582622b700bedb6a571518eac'/>
<id>urn:sha1:7f9d1d6ab923096582622b700bedb6a571518eac</id>
<content type='text'>
Previous to this patch the printing mechanism was a bit of a tangled
mess.  This patch attempts to consolidate printing into one interface.

All (non-debug) printing now uses the mp_print* family of functions,
mainly mp_printf.  All these functions take an mp_print_t structure as
their first argument, and this structure defines the printing backend
through the "print_strn" function of said structure.

Printing from the uPy core can reach the platform-defined print code via
two paths: either through mp_sys_stdout_obj (defined pert port) in
conjunction with mp_stream_write; or through the mp_plat_print structure
which uses the MP_PLAT_PRINT_STRN macro to define how string are printed
on the platform.  The former is only used when MICROPY_PY_IO is defined.

With this new scheme printing is generally more efficient (less layers
to go through, less arguments to pass), and, given an mp_print_t*
structure, one can call mp_print_str for efficiency instead of
mp_printf("%s", ...).  Code size is also reduced by around 200 bytes on
Thumb2 archs.
</content>
</entry>
<entry>
<title>py: Add MICROPY_PY_BUILTINS_REVERSED, disable for minimal ports.</title>
<updated>2015-04-06T21:17:11+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-04-06T21:16:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=282ca09f8e386f24e1e87acd3de93954b6a8035c'/>
<id>urn:sha1:282ca09f8e386f24e1e87acd3de93954b6a8035c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Add MICROPY_PY_BUILTINS_ENUMERATE, disable for minimal ports.</title>
<updated>2015-04-06T20:51:29+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-04-06T20:50:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e2d44e30c77360789d6e7c1211b222f93b92e0df'/>
<id>urn:sha1:e2d44e30c77360789d6e7c1211b222f93b92e0df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>string0.c: Move from stmhal/ to lib/.</title>
<updated>2015-04-05T18:57:55+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-04-05T18:44:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3a84c8b58d7c87785bf1ae48eb41c91ecde9fc1c'/>
<id>urn:sha1:3a84c8b58d7c87785bf1ae48eb41c91ecde9fc1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Add MICROPY_COMP_{DOUBLE,TRIPLE}_TUPLE_ASSIGN config options.</title>
<updated>2015-03-14T13:11:35+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-03-14T13:11:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=42e0c593084784cb0b630d99b8361bc88abadb78'/>
<id>urn:sha1:42e0c593084784cb0b630d99b8361bc88abadb78</id>
<content type='text'>
These allow to fine-tune the compiler to select whether it optimises
tuple assignments of the form a, b = c, d and a, b, c = d, e, f.
Sensible defaults are provided.
</content>
</entry>
<entry>
<title>minimal: Allow to compile without defining MICROPY_HAL_H.</title>
<updated>2015-02-13T15:26:53+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-13T15:26:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=601c814603801ad3af78e37d26c87a4470156738'/>
<id>urn:sha1:601c814603801ad3af78e37d26c87a4470156738</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Protect mp_parse and mp_compile with nlr push/pop block.</title>
<updated>2015-02-07T18:33:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-07T18:33:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0bfc7638baa4c5a4a2351364ab770a188dcab302'/>
<id>urn:sha1:0bfc7638baa4c5a4a2351364ab770a188dcab302</id>
<content type='text'>
To enable parsing constants more efficiently, mp_parse should be allowed
to raise an exception, and mp_compile can already raise a MemoryError.
So these functions need to be protected by an nlr push/pop block.

This patch adds that feature in all places.  This allows to simplify how
mp_parse and mp_compile are called: they now raise an exception if they
have an error and so explicit checking is not needed anymore.
</content>
</entry>
<entry>
<title>py: Implement very simple frozen modules support.</title>
<updated>2015-01-20T09:52:12+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-01-20T09:52:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=640e0b221e972f9a2da2d870bf3fc5a93c18f0ec'/>
<id>urn:sha1:640e0b221e972f9a2da2d870bf3fc5a93c18f0ec</id>
<content type='text'>
Only modules (not packages) supported now. Source modules can be converted
to frozen module structures using tools/make-frozen.py script.
</content>
</entry>
</feed>
