Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Retain file order of qstr definitions. | Damien George | 2014-01-24 |
| | | | | | Want common qstrs to be first in the list so they have the lowest ids, so that in the byte code they take up the least room. | ||
* | Merge pull request #215 from pfalcon/qstr-special-chars | Damien George | 2014-01-24 |
|\ | | | | | Allow qstr's with non-ident chars, construct good identifier for them. | ||
| * | Allow qstr's with non-ident chars, construct good identifier for them. | Paul Sokolovsky | 2014-01-24 |
| | | | | | | | | | | Also, add qstr's for string appearing in unix REPL loop, gross effect being less allocations for each command run. | ||
* | | lexerstr: Free mp_lexer_str_buf_t structure itself. | Paul Sokolovsky | 2014-01-24 |
|/ | |||
* | mp_compile(): Properly free module_scope and all nested scopes. | Paul Sokolovsky | 2014-01-23 |
| | |||
* | mp_lexer_free(): Free lex->indent_level array. | Paul Sokolovsky | 2014-01-23 |
| | |||
* | py: Implement bool unary op; tidy up unary op dispatch. | Damien George | 2014-01-23 |
| | |||
* | py: Simpler implementation of mp_obj_callable. | Damien George | 2014-01-23 |
| | |||
* | mp_obj_is_callable(): Only object types can be callable. | Paul Sokolovsky | 2014-01-23 |
| | | | | Fixes segfault on callable("string"). | ||
* | Implement simplest case of str.startswith(). | Paul Sokolovsky | 2014-01-23 |
| | |||
* | py: Use C99 way of variable macro arguments. | Damien George | 2014-01-23 |
| | | | | Addresses Issue #207. | ||
* | py: Change macro var args in parser to be C99 compliant. | Damien George | 2014-01-23 |
| | |||
* | py: Initialise loaded_module map in rt_init. | Damien George | 2014-01-22 |
| | | | | | STM port crashes without this re-init. There should not be any state in the core py/ code that relies on pre-initialised data. | ||
* | Fix 1 warning and 1 bug. | Damien George | 2014-01-22 |
| | |||
* | Implement octal and hex escapes in strings. | Paul Sokolovsky | 2014-01-22 |
| | |||
* | file.readline(): Use mp_obj_str_get_data() and fix off-by-one error on EOF. | Paul Sokolovsky | 2014-01-22 |
| | |||
* | Second stage of qstr revamp: uPy str object can be qstr or not. | Damien George | 2014-01-22 |
| | |||
* | py: Remove implicit conversion of float to int in mp_obj_get_int(). | Damien George | 2014-01-22 |
| | | | | Addresses Issue #199. | ||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-01-21 |
|\ | |||
| * | Fix malformed generated file when using python 2.7 | Dave Hylands | 2014-01-21 |
| | | |||
* | | py: Implement break and continue byte codes, and add tests. | Damien George | 2014-01-21 |
|/ | | | | | | | Also fixes a bug in the for-in-range optimiser. I hope to remove break and continue byte codes in the future and just use jump (if possible). | ||
* | array: Implement iterator. | Paul Sokolovsky | 2014-01-21 |
| | |||
* | Add len() support for arrays. | Paul Sokolovsky | 2014-01-21 |
| | |||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-01-21 |
|\ | | | | | | | | | | | | | | | | | Conflicts: py/objstr.c py/py.mk py/stream.c unix/main.c unix/socket.c | ||
| * | Implement str.split(None). | Paul Sokolovsky | 2014-01-21 |
| | | | | | | | | Note that splitting by explicit string is not implemented so far. | ||
| * | str: Implement proper string (instead of byte string) indexing. | Paul Sokolovsky | 2014-01-21 |
| | | | | | | | | Also, support negative indexes. | ||
| * | Implement string multiplication. | Paul Sokolovsky | 2014-01-21 |
| | | |||
| * | sequence.c: Start to refactor sequence operations for reuse among types. | Paul Sokolovsky | 2014-01-21 |
| | | |||
| * | objstr: More support for MP_OBJ_QSTR. | Paul Sokolovsky | 2014-01-20 |
| | | |||
| * | mp_obj_get_type_str(): Handle MP_OBJ_QSTR. | Paul Sokolovsky | 2014-01-20 |
| | | |||
| * | Add dummy bytes() constructor. | Paul Sokolovsky | 2014-01-20 |
| | | | | | | | | | | | | 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). | ||
| * | stream_read(): Shrink memory block to actual read size. | Paul Sokolovsky | 2014-01-20 |
| | | |||
| * | stream: Add generic unbuffered iternext method. | Paul Sokolovsky | 2014-01-20 |
| | | | | | | | | Uses stream_unbuffered_readline underline. | ||
| * | mp_identity(): Add generic identity function. | Paul Sokolovsky | 2014-01-20 |
| | | | | | | | | Useful as getiter method for objects which are their own iterators, etc. | ||
| * | mp_obj_get_qstr(): Handle MP_OBJ_QSTR. | Paul Sokolovsky | 2014-01-20 |
| | | |||
* | | Revamp qstrs: they now include length and hash. | Damien George | 2014-01-21 |
|/ | | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h | ||
* | py: Put micropython module init code in builtinmp.c. | Damien George | 2014-01-20 |
| | |||
* | Expose memory stats functions via "micropython" module. | Paul Sokolovsky | 2014-01-20 |
| | | | | | | | 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. | ||
* | Don't implicitly import "sys" module. | Paul Sokolovsky | 2014-01-20 |
| | |||
* | Pre-create sys module. | Paul Sokolovsky | 2014-01-20 |
| | |||
* | Properly print MP_OBJ_QSTR objects. | Paul Sokolovsky | 2014-01-20 |
| | |||
* | Implement modules as singletons Python semantics. | Paul Sokolovsky | 2014-01-20 |
| | | | | | | | | | | | | 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 . | ||
* | Change int to uint for n_args in function with variable arguments. | Damien George | 2014-01-19 |
| | |||
* | py: Add full traceback to exception printing. | Damien George | 2014-01-19 |
| | |||
* | py: Add module/function/class name to exceptions. | Damien George | 2014-01-19 |
| | | | | | | | Exceptions know source file, line and block name. Also tidy up some debug printing functions and provide a global flag to enable/disable them. | ||
* | py: Temporary fix for bug where not enough VM state is allocated. | Damien George | 2014-01-19 |
| | |||
* | Tiny optimisation in objlist.c; a new test for inheritance. | Damien George | 2014-01-19 |
| | |||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-01-18 |
|\ | |||
| * | Add objarray.h . | Paul Sokolovsky | 2014-01-19 |
| | | |||
* | | py: Fix VM/runtime unpack sequence bug, Issue #193. | Damien George | 2014-01-18 |
|/ |