aboutsummaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-01-29py: Msg in exception is no longer interned.Damien George
2014-01-29Add qstr_info() function and bindings for unix port.Damien George
2014-01-28py: Implement 'not' in compiler, and improve rt_is_true.Damien George
2014-01-29mp_obj_new_bytearray_by_ref(): Allow to create array by reference.Paul Sokolovsky
This is special feature for FFI.
2014-01-28bytearray: Print objects properly.Paul Sokolovsky
2014-01-28Factor out quoted string print function for reuse (mp_str_print_quoted()).Paul Sokolovsky
2014-01-28array: CPython prints empty arrays inconsistently (only typecode, no []).Paul Sokolovsky
2014-01-28Don't pre-import array module.Paul Sokolovsky
2014-01-28array.array: Allow to create empty arrays.Paul Sokolovsky
2014-01-27Merge pull request #231 from iabdalkader/masterDamien George
Fix implicit double conversion warning
2014-01-27Merge branch 'master' of github.com:micropython/micropythonDamien George
2014-01-27py: Add unary op not for NoneType, bool, tuple, list, dict; fix for int.Damien George
2014-01-27long int: Implement more operations.Paul Sokolovsky
2014-01-27Fix implicit double conversion warningmux
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