Featuring the PyMite VM
:Author: Dean Hall :Copyright: Python-on-a-Chip is Copyright 2003, 2006, 2007, 2009, 2010 Dean Hall and others. Python-on-a-Chip is licensed under the GNU LESSER GENERAL PUBLIC LICENSE V 2.1 PyMite is Copyright 2003, 2006, 2007, 2009, 2010 Dean Hall. PyMite is licensed under the GNU GENERAL PUBLIC LICENSE V 2 or a commercial license. This software is offered with NO WARRANTY. See LICENSE for details. :Release: 09 :Site: http://www.pythononachip.org
The Python-on-a-chip Project is pleased to announce release 09.
Python-on-a-Chip (p14p) is a project to develop a reduced Python virtual machine (codenamed PyMite) that runs a significant subset of the Python language on microcontrollers without an OS. The other parts of p14p are the device drivers, high-level libraries and other tools.
p14p runs on microcontroller with 8K of RAM or more, including the Arduino Mega.
Here are the important new features and fixes in this release:
- Classes with multiple inheritance
- Generators with iterators, expressions and coroutines
- String concatenation using the addition operator '+'
- Migrated to Python 2.6 compiler and bytecodes
- The backtick operator (s=
x) for integers and floats
- String format (%) using %d,s,f format chars
- Closures. Also allows decorators with an argument
- The Bytearray class: packet = bytearray(128); b = bytearray(b"abc")
- Improved appearance of ipm
- Fixed three nasty defects in the Garbage Collector
- Improved readability of exception tracebacks for some platforms
- Moved native function tables to "const" to save RAM
- Added iter() to builtins (commented out)
- Fixed string.count and string.find