aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-21Add bytearray basic tests.Paul Sokolovsky
2014-01-21array: Implement iterator.Paul Sokolovsky
2014-01-21Add len() support for arrays.Paul Sokolovsky
2014-01-21Merge branch 'master' of github.com:micropython/micropythonDamien George
Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-21run-tests: Allow to run tests selectively via command line.Paul Sokolovsky
2014-01-21Implement str.split(None).Paul Sokolovsky
Note that splitting by explicit string is not implemented so far.
2014-01-21str: Implement proper string (instead of byte string) indexing.Paul Sokolovsky
Also, support negative indexes.
2014-01-21Implement string multiplication.Paul Sokolovsky
2014-01-21sequence.c: Start to refactor sequence operations for reuse among types.Paul Sokolovsky
2014-01-20unix file: Refactor and add sys.stdout/stdin/stderr.Paul Sokolovsky
2014-01-20objstr: More support for MP_OBJ_QSTR.Paul Sokolovsky
2014-01-20mp_obj_get_type_str(): Handle MP_OBJ_QSTR.Paul Sokolovsky
2014-01-20socket-client, socket-server examples now run on both Micro- and C-Python.Paul Sokolovsky
2014-01-20Add dummy bytes() constructor.Paul Sokolovsky
Currently, MicroPython strings are mix between CPython byte and unicode strings. So, conversion is null so far. This dummy implementation is intended for compatibility with CPython (so, same code can run on both).
2014-01-20Don't preimport socket module.Paul Sokolovsky
2014-01-20unix socket: Add send() and recv() methods.Paul Sokolovsky
CPython _socket actually have only those and doesn't provide stream interface (higher-level CPython "socket" what adds this). +516 bytes x86.
2014-01-20stream_read(): Shrink memory block to actual read size.Paul Sokolovsky
2014-01-20unix io.FileIO: Add iteration support.Paul Sokolovsky
A file cannot be iterated concurrently, so we make io.FileIO its own iterator.
2014-01-20stream: Add generic unbuffered iternext method.Paul Sokolovsky
Uses stream_unbuffered_readline underline.
2014-01-20mp_identity(): Add generic identity function.Paul Sokolovsky
Useful as getiter method for objects which are their own iterators, etc.
2014-01-20mp_obj_get_qstr(): Handle MP_OBJ_QSTR.Paul Sokolovsky
2014-01-20py: Put micropython module init code in builtinmp.c.Damien George
2014-01-20Merge pull request #198 from pfalcon/expose-memstatDamien George
Expose memory stats functions via "micropython" module.
2014-01-20Expose memory stats functions via "micropython" module.Paul Sokolovsky
These are micropython.mem_total(), .mem_current(), .mem_peak(). These are 3 individual functions with simple scalar return value to make sure that calls to these functions themselves have minimal (hopefully zero) impact on memory allocation.
2014-01-20Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-20Rename unix binary to 'micropython'.Damien George
2014-01-20Don't implicitly import "sys" module.Paul Sokolovsky
2014-01-20unix: Implement sys.argv.Paul Sokolovsky
2014-01-20Pre-create sys module.Paul Sokolovsky
2014-01-20Properly print MP_OBJ_QSTR objects.Paul Sokolovsky
2014-01-19Merge pull request #197 from pfalcon/mod-singletonsDamien George
Implement modules as singletons Python semantics.
2014-01-20Implement modules as singletons Python semantics.Paul Sokolovsky
In Python, importing module several times returns same underlying module object. This also fixes import statement handling for builtin modules. There're still issues: 1. CPython exposes set of loaded modules as sys.modules, we may want to do that either. 2. Builtin modules are implicitly imported, which is not really correct. We should separate registering a (builtin) module and importing a module. CPython keeps builtin module names in sys.builtin_module_names .
2014-01-19Small changes to README.Damien George
2014-01-19Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-19stm: Upgrade ST peripheral library from 1.1.0 to 1.3.0.Damien George
2014-01-19Add README for tests/.Paul Sokolovsky
2014-01-19Add directory for I/O tests with basic test for file methods.Paul Sokolovsky
2014-01-19stm: Upgrade to latest CMSIS libraries.Damien George
CMSIS V3.01 -> V3.20. Now in stm/cmsis to keep separate from ST libraries.
2014-01-19Move tests in basic/tests/ up one level preparating to multiple test dirs.Paul Sokolovsky
2014-01-19Change int to uint for n_args in function with variable arguments.Damien George
2014-01-19py: Add full traceback to exception printing.Damien George
2014-01-19Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-19py: Add module/function/class name to exceptions.Damien George
Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them.
2014-01-19Fix incorrect prototype of mp_builtin_open() after args refactor.Paul Sokolovsky
2014-01-19Add socket examples (simple HTTP client and server).Paul Sokolovsky
2014-01-19py: Temporary fix for bug where not enough VM state is allocated.Damien George
2014-01-19Tiny optimisation in objlist.c; a new test for inheritance.Damien George
2014-01-18Fix warnings about int/pointer casting.Damien George
2014-01-18Merge branch 'master' of github.com:micropython/micropythonDamien George