summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-01-27list.pop(): Don't allow ->alloc drop to zero, which causes unexpected behavior.Paul Sokolovsky
2014-01-27gen.send(): Throw StopIteration. Also, explicitly shutdown finished gen.Paul Sokolovsky
Otherwise, some generator statements still may be spuriously executed on subsequent calls to next()/send().
2014-01-26Implement send() method for generators.Paul Sokolovsky
2014-01-26Functions of fixed number of args are special-cased only for 3 or less args.Paul Sokolovsky
2014-01-26Add MP_OBJ_IS_INT(), for symmetry with MP_OBJ_IS_STR().Paul Sokolovsky
2014-01-25Merge pull request #225 from dhylands/fix-make-depDamien George
Fixed dependency problem for qstrdefs.generated.h
2014-01-25Fixed dependency problem for qstrdefs.generated.hDave Hylands
The problem manifests itself in make 4.0 I also fixed the LINK message when linking the final executable for unix and unix-cpy.
2014-01-25Implement mp_parse_node_free; print properly repr(string).Damien George
2014-01-25Merge branch 'free-parse-tree' of github.com:pfalcon/micropython into ↵Damien George
pfalcon-free-parse-tree
2014-01-25py: Optimise generated code for working out line numbers.Damien George
2014-01-25Remove obsoleted comment.Damien George
2014-01-25Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-25py: Implement iterator support for object that has __getitem__.Damien George
Addresses Issue #203.
2014-01-25Add parse_node_free_struct() and use it to free parse tree after compilation.Paul Sokolovsky
TODO: Check lexer/parse/compile error path for leaks too.
2014-01-25rt_deinit(): Finalize some maps.Paul Sokolovsky
2014-01-25Add mp_map_deinit() & mp_map_free() to finalize maps.Paul Sokolovsky
mp_map_deinit() finalizes static map, mp_map_free() - dynamic.
2014-01-24Merge pull request #221 from pfalcon/basic-bytesDamien George
Add basic implementation of bytes type, piggybacking on str.
2014-01-24Merge pull request #219 from dhylands/add-depsDamien George
Rework makefiles. Add proper dependency checking.
2014-01-24Revert "Move gc_collect to py/gc.c"Damien George
This reverts commit a215b09c0dc29b82161092e92ea2e5e004d79468.
2014-01-24Merge pull request #218 from iabdalkader/masterDamien George
Move file obj to separate module
2014-01-24py: Improve freeing of emitters in mp_compile.Damien George
There can be multiple emitters allocated during compile (eg byte code and native).
2014-01-24Merge pull request #217 from pfalcon/free-emitterDamien George
Add support for freeing code emitter objects at the end of compilation.
2014-01-24Retain file order of qstr definitions.Damien George
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.
2014-01-24Merge pull request #215 from pfalcon/qstr-special-charsDamien George
Allow qstr's with non-ident chars, construct good identifier for them.
2014-01-24Add basic implementation of bytes type, piggybacking on str.Paul Sokolovsky
This reuses as much str implementation as possible, from this we can make them more separate as needed.
2014-01-24Move gc_collect to py/gc.cmux
* Move gc_collect from main to py/gc.c * Define GC's memory boundaries in linker script * Issue #220
2014-01-24Rework makefiles. Add proper dependency checking.Dave Hylands
2014-01-24Add support for freeing code emitter objects at the end of compilation.Paul Sokolovsky
2014-01-24lexerstr: Free mp_lexer_str_buf_t structure itself.Paul Sokolovsky
2014-01-24Allow qstr's with non-ident chars, construct good identifier for them.Paul Sokolovsky
Also, add qstr's for string appearing in unix REPL loop, gross effect being less allocations for each command run.
2014-01-23mp_compile(): Properly free module_scope and all nested scopes.Paul Sokolovsky
2014-01-23mp_lexer_free(): Free lex->indent_level array.Paul Sokolovsky
2014-01-23py: Implement bool unary op; tidy up unary op dispatch.Damien George
2014-01-23py: Simpler implementation of mp_obj_callable.Damien George
2014-01-23mp_obj_is_callable(): Only object types can be callable.Paul Sokolovsky
Fixes segfault on callable("string").
2014-01-23Implement simplest case of str.startswith().Paul Sokolovsky
2014-01-23py: Use C99 way of variable macro arguments.Damien George
Addresses Issue #207.
2014-01-23py: Change macro var args in parser to be C99 compliant.Damien George
2014-01-22py: Initialise loaded_module map in rt_init.Damien George
STM port crashes without this re-init. There should not be any state in the core py/ code that relies on pre-initialised data.
2014-01-22Fix 1 warning and 1 bug.Damien George
2014-01-22Implement octal and hex escapes in strings.Paul Sokolovsky
2014-01-22file.readline(): Use mp_obj_str_get_data() and fix off-by-one error on EOF.Paul Sokolovsky
2014-01-22Second stage of qstr revamp: uPy str object can be qstr or not.Damien George
2014-01-22py: Remove implicit conversion of float to int in mp_obj_get_int().Damien George
Addresses Issue #199.
2014-01-21Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-21py: Implement break and continue byte codes, and add tests.Damien George
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).
2014-01-21Fix malformed generated file when using python 2.7Dave Hylands
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