summaryrefslogtreecommitdiffstatshomepage
path: root/py
Commit message (Collapse)AuthorAge
* array: CPython prints empty arrays inconsistently (only typecode, no []).Paul Sokolovsky2014-01-28
|
* Don't pre-import array module.Paul Sokolovsky2014-01-28
|
* array.array: Allow to create empty arrays.Paul Sokolovsky2014-01-28
|
* Merge pull request #231 from iabdalkader/masterDamien George2014-01-27
|\ | | | | Fix implicit double conversion warning
| * Fix implicit double conversion warningmux2014-01-27
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-27
|\ \
| * | long int: Implement more operations.Paul Sokolovsky2014-01-27
| |/
| * list.pop(): Don't allow ->alloc drop to zero, which causes unexpected behavior.Paul Sokolovsky2014-01-27
| |
| * gen.send(): Throw StopIteration. Also, explicitly shutdown finished gen.Paul Sokolovsky2014-01-27
| | | | | | | | | | Otherwise, some generator statements still may be spuriously executed on subsequent calls to next()/send().
* | py: Add unary op not for NoneType, bool, tuple, list, dict; fix for int.Damien George2014-01-27
|/
* Implement send() method for generators.Paul Sokolovsky2014-01-26
|
* Functions of fixed number of args are special-cased only for 3 or less args.Paul Sokolovsky2014-01-26
|
* Add MP_OBJ_IS_INT(), for symmetry with MP_OBJ_IS_STR().Paul Sokolovsky2014-01-26
|
* Merge pull request #225 from dhylands/fix-make-depDamien George2014-01-25
|\ | | | | Fixed dependency problem for qstrdefs.generated.h
| * Fixed dependency problem for qstrdefs.generated.hDave Hylands2014-01-25
| | | | | | | | | | | | The problem manifests itself in make 4.0 I also fixed the LINK message when linking the final executable for unix and unix-cpy.
* | Implement mp_parse_node_free; print properly repr(string).Damien George2014-01-25
| |
* | Merge branch 'free-parse-tree' of github.com:pfalcon/micropython into ↵Damien George2014-01-25
|\ \ | | | | | | | | | pfalcon-free-parse-tree
| * | Add parse_node_free_struct() and use it to free parse tree after compilation.Paul Sokolovsky2014-01-25
| | | | | | | | | | | | TODO: Check lexer/parse/compile error path for leaks too.
* | | py: Optimise generated code for working out line numbers.Damien George2014-01-25
| |/ |/|
* | Remove obsoleted comment.Damien George2014-01-25
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-01-25
|\|
| * rt_deinit(): Finalize some maps.Paul Sokolovsky2014-01-25
| |
| * Add mp_map_deinit() & mp_map_free() to finalize maps.Paul Sokolovsky2014-01-25
| | | | | | | | mp_map_deinit() finalizes static map, mp_map_free() - dynamic.
* | py: Implement iterator support for object that has __getitem__.Damien George2014-01-25
|/ | | | Addresses Issue #203.
* Merge pull request #221 from pfalcon/basic-bytesDamien George2014-01-24
|\ | | | | Add basic implementation of bytes type, piggybacking on str.
| * Add basic implementation of bytes type, piggybacking on str.Paul Sokolovsky2014-01-24
| | | | | | | | | | This reuses as much str implementation as possible, from this we can make them more separate as needed.
* | Merge pull request #219 from dhylands/add-depsDamien George2014-01-24
|\ \ | | | | | | Rework makefiles. Add proper dependency checking.
| * | Rework makefiles. Add proper dependency checking.Dave Hylands2014-01-24
| |/
* | Revert "Move gc_collect to py/gc.c"Damien George2014-01-24
| | | | | | | | This reverts commit a215b09c0dc29b82161092e92ea2e5e004d79468.
* | Merge pull request #218 from iabdalkader/masterDamien George2014-01-24
|\ \ | | | | | | Move file obj to separate module
| * | Move gc_collect to py/gc.cmux2014-01-24
| |/ | | | | | | | | | | * Move gc_collect from main to py/gc.c * Define GC's memory boundaries in linker script * Issue #220
* | py: Improve freeing of emitters in mp_compile.Damien George2014-01-24
| | | | | | | | | | There can be multiple emitters allocated during compile (eg byte code and native).
* | Merge pull request #217 from pfalcon/free-emitterDamien George2014-01-24
|\ \ | | | | | | Add support for freeing code emitter objects at the end of compilation.
| * | Add support for freeing code emitter objects at the end of compilation.Paul Sokolovsky2014-01-24
| |/
* | Retain file order of qstr definitions.Damien George2014-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-charsDamien George2014-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 Sokolovsky2014-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 Sokolovsky2014-01-24
|/
* mp_compile(): Properly free module_scope and all nested scopes.Paul Sokolovsky2014-01-23
|
* mp_lexer_free(): Free lex->indent_level array.Paul Sokolovsky2014-01-23
|
* py: Implement bool unary op; tidy up unary op dispatch.Damien George2014-01-23
|
* py: Simpler implementation of mp_obj_callable.Damien George2014-01-23
|
* mp_obj_is_callable(): Only object types can be callable.Paul Sokolovsky2014-01-23
| | | | Fixes segfault on callable("string").
* Implement simplest case of str.startswith().Paul Sokolovsky2014-01-23
|
* py: Use C99 way of variable macro arguments.Damien George2014-01-23
| | | | Addresses Issue #207.
* py: Change macro var args in parser to be C99 compliant.Damien George2014-01-23
|
* py: Initialise loaded_module map in rt_init.Damien George2014-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 George2014-01-22
|
* Implement octal and hex escapes in strings.Paul Sokolovsky2014-01-22
|
* file.readline(): Use mp_obj_str_get_data() and fix off-by-one error on EOF.Paul Sokolovsky2014-01-22
|