Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | io.File, socket types: Add fileno() method. | Paul Sokolovsky | 2014-02-08 |
| | | | | | Implementation is duplicated, but tolerate this for now, because there's no clear idea how to de-dup it. | ||
* | Add more finally + break/continue testcases. | Paul Sokolovsky | 2014-02-06 |
| | |||
* | Add additional testcase for finally/return. | Paul Sokolovsky | 2014-02-06 |
| | |||
* | py: Add built-in super. | Damien George | 2014-02-05 |
| | |||
* | 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. | ||
* | run-tests can handle segfault. | Damien George | 2014-01-29 |
| | |||
* | Merge branch 'master' of github.com:msiemens/micropython into msiemens-master | Damien George | 2014-01-29 |
|\ | |||
| * | Added Windows port (see #233) | Markus Siemens | 2014-01-28 |
| | | |||
* | | 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). | ||
* | Add bytearray basic tests. | Paul Sokolovsky | 2014-01-21 |
| | |||
* | run-tests: Allow to run tests selectively via command line. | Paul Sokolovsky | 2014-01-21 |
| | |||
* | 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 |
| | |||
* | unix io.FileIO: Add iteration support. | Paul Sokolovsky | 2014-01-20 |
| | | | | | A file cannot be iterated concurrently, so we make io.FileIO its own iterator. | ||
* | Rename unix binary to 'micropython'. | Damien George | 2014-01-20 |
| |