Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Add testcase for failing namespace switch throwing exception from a module. | Paul Sokolovsky | 2014-02-15 |
| | | | | Issue #290. This currently fails, to draw attention to the issue. | ||
* | Add testcase for "from module import *". | Paul Sokolovsky | 2014-02-14 |
| | |||
* | Add testcase for "from module import sym". | Paul Sokolovsky | 2014-02-14 |
| | |||
* | Implement full arg handling for exec(). | Paul Sokolovsky | 2014-02-13 |
| | |||
* | basics/enumerate.py: Don't turn enumerate test into heap test. | Paul Sokolovsky | 2014-02-11 |
| | | | | With range(10000), doesn't fit into 128K heap. | ||
* | Merge pull request #267 from pfalcon/func-ret-ann | Damien George | 2014-02-10 |
|\ | | | | | Clean up handling of function return type annotation. | ||
| * | Clean up handling of function return type annotation. | Paul Sokolovsky | 2014-02-10 |
| | | |||
* | | Factor out mp_seq_count_obj() and implement tuple.count(). | Paul Sokolovsky | 2014-02-10 |
| | | |||
* | | Implement tuple.index(). | Paul Sokolovsky | 2014-02-10 |
|/ | |||
* | Implement tuple multiplication. | Paul Sokolovsky | 2014-02-08 |
| | |||
* | Implement tuple addition. | Paul Sokolovsky | 2014-02-08 |
| | |||
* | Implement tuple comparison. | Paul Sokolovsky | 2014-02-08 |
| | |||
* | Add more finally + break/continue testcases. | Paul Sokolovsky | 2014-02-06 |
| | |||
* | Add additional testcase for finally/return. | Paul Sokolovsky | 2014-02-06 |
| | |||
* | Fix unstable case in builtin_id.py test. | Paul Sokolovsky | 2014-02-04 |
| | |||
* | Merge branch 'xbe-master' | Damien George | 2014-02-02 |
|\ | |||
| * | Change id to return signed integer. | Damien George | 2014-02-02 |
| | | |||
| * | Implement and add tests for the id() builtin function. | xbe | 2014-02-01 |
| | | |||
* | | Implement str/bytes rich comparisons. | Paul Sokolovsky | 2014-02-02 |
|/ | |||
* | Implement slicing for tuples. | Paul Sokolovsky | 2014-02-02 |
| | |||
* | Implement slicing for lists. | Paul Sokolovsky | 2014-02-02 |
| | |||
* | Add testcase for sequence unpacking. | Paul Sokolovsky | 2014-02-02 |
| | |||
* | py: Implement break/continue from an exception with finally. | Damien George | 2014-02-01 |
| | | | | Still todo: break/continue from within the finally block itself. | ||
* | Merge branch 'fun-defargs' of github.com:pfalcon/micropython into ↵ | Damien George | 2014-02-01 |
|\ | | | | | | | pfalcon-fun-defargs | ||
| * | Implement default function arguments (for Python functions). | Paul Sokolovsky | 2014-02-01 |
| | | | | | | | | | | | | | | | | TODO: Decide if we really need separate bytecode for creating functions with default arguments - we would need same for closures, then there're keywords arguments too. Having all combinations is a small exponential explosion, likely we need just 2 cases - simplest (no defaults, no kw), and full - defaults & kw. | ||
* | | Add exception stack unwind support for RETURN_VALUE. | Paul Sokolovsky | 2014-02-01 |
|/ | | | | | | | | This properly implements return from try/finally block(s). TODO: Consider if we need to do any value stack unwinding for RETURN_VALUE case. Intuitively, this is "success" return, so value stack should be in good shape, and unwinding shouldn't be required. | ||
* | Merge pull request #246 from pfalcon/exc_stack_entry | Damien George | 2014-01-31 |
|\ | | | | | vm: Introduce structure for exception stack entry, record entry type. | ||
| * | Add basic try-finally testcase. | Paul Sokolovsky | 2014-01-31 |
| | | | | | | | | | | It's mildly suprising these work without further changes to exception handling code (the only change required was to handle SETUP_FINALLY). | ||
* | | Merge branch 'master' of github.com:xbe/micropython into xbe-master | Damien George | 2014-01-31 |
|\ \ | |/ |/| | |||
| * | Implement str.replace and add tests for it. | xbe | 2014-01-30 |
| | | |||
| * | Add tests for str.strip | xbe | 2014-01-30 |
| | | |||
* | | Typo fixes in comments. | Paul Sokolovsky | 2014-01-31 |
| | | |||
* | | Add testcase with exception handler spread across functions. | Paul Sokolovsky | 2014-01-31 |
|/ | |||
* | vm: Add basic implementation of END_FINALLY opcode. | Paul Sokolovsky | 2014-01-30 |
| | | | | | | Allows to have nested try blocks with except filters. TODO: Don't add END_FINALLY's exception re-raise points to traceback. | ||
* | py: Improve __bool__ and __len__ dispatch; add slots for them. | Damien George | 2014-01-30 |
| | |||
* | Implement __bool__ and __len__ via unary_op virtual method for all types. | Paul Sokolovsky | 2014-01-30 |
| | | | | | | | __bool__() and __len__() are just the same as __neg__() or __invert__(), and require efficient dispatching implementation (not requiring search/lookup). type->unary_op() is just the right choice for this short of adding standalone virtual method(s) to already big mp_obj_type_t structure. | ||
* | Rename array test to array1 so it doesn't clash with array module. | Damien George | 2014-01-28 |
| | | | | On my machine, 'import array' in CPython tries to load the array test. | ||
* | bytearray: Print objects properly. | Paul Sokolovsky | 2014-01-28 |
| | |||
* | Add basic array.array test. | Paul Sokolovsky | 2014-01-28 |
| | |||
* | Merge branch 'master' of github.com:micropython/micropython | Damien George | 2014-01-27 |
|\ | |||
| * | long int: Implement more operations. | Paul Sokolovsky | 2014-01-27 |
| | | |||
| * | gen.send(): Throw StopIteration. Also, explicitly shutdown finished gen. | Paul Sokolovsky | 2014-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 George | 2014-01-27 |
|/ | |||
* | Implement send() method for generators. | Paul Sokolovsky | 2014-01-26 |
| | |||
* | py: Implement iterator support for object that has __getitem__. | Damien George | 2014-01-25 |
| | | | | Addresses Issue #203. | ||
* | Add basic implementation of bytes type, piggybacking on str. | Paul Sokolovsky | 2014-01-24 |
| | | | | | This reuses as much str implementation as possible, from this we can make them more separate as needed. | ||
* | 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 |
| | |||
* | Implement octal and hex escapes in strings. | Paul Sokolovsky | 2014-01-22 |
| | |||
* | 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). |