summaryrefslogtreecommitdiffstatshomepage
path: root/tests
Commit message (Collapse)AuthorAge
* Merge pull request #399 from pfalcon/gen-defargsDamien George2014-03-30
|\ | | | | objgenerator: Handle default args to generator functions.
| * objgenerator: Handle default args to generator functions.Paul Sokolovsky2014-03-30
| | | | | | | | Addresses #397.
* | py: Fix "TypeError: 'iterator' object is not iterable", doh.Paul Sokolovsky2014-03-30
| |
* | py: Implement support for generalized generator protocol.Paul Sokolovsky2014-03-30
| | | | | | | | Iterators and ducktype objects can now be arguments of yield from.
* | py: Implement positional and keyword args via * and **.Damien George2014-03-30
| | | | | | | | | | Extends previous implementation with * for function calls to * and ** for both function and method calls.
* | vm: Implement CALL_FUNCTION_VAR opcode (foo(*(1, 2, 3))).Paul Sokolovsky2014-03-30
|/
* Add "tracing" to try-reraise2.py test. It now fails.Damien George2014-03-30
|
* vm: Save current active exception on opening new try block.Paul Sokolovsky2014-03-30
| | | | | | | | | | | Required to reraise correct exceptions in except block, regardless if more try blocks with active exceptions happen in the same except block. P.S. This "automagic reraise" appears to be quite wasteful feature of Python - we need to save pending exception just in case it *might* be reraised. Instead, programmer could explcitly capture exception to a variable using "except ... as var", and reraise that. So, consider disabling argless raise support as an optimization.
* py: Reraising exception possible only in except block.Paul Sokolovsky2014-03-29
|
* Merge pull request #389 from pfalcon/with-statementDamien George2014-03-29
|\ | | | | With statement implementation
| * tests: Add "with" statement testcases.Paul Sokolovsky2014-03-29
| |
* | Merge pull request #383 from pfalcon/yield-fromDamien George2014-03-29
|\ \ | | | | | | Implement "yield from"
| * | tests: Add testcases for yield from.Paul Sokolovsky2014-03-28
| |/
* / tests: Remove unimplemented exceptions from testing.Damien George2014-03-29
|/
* Merge pull request #381 from pfalcon/closure-defargsDamien George2014-03-26
|\ | | | | py: Support closures with default args.
| * py: Support closures with default args.Paul Sokolovsky2014-03-26
| |
* | py: Implement getattr() builtin.Paul Sokolovsky2014-03-27
|/
* py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.Damien George2014-03-26
|
* Merge pull request #379 from pfalcon/reraiseDamien George2014-03-26
|\ | | | | vm: Implement raise statement w/o args (reraising last exception).
| * vm: Implement raise statement w/o args (reraising last exception).Paul Sokolovsky2014-03-26
| |
* | Merge branch 'gen-close-ret-val' of github.com:pfalcon/micropython into ↵Damien George2014-03-26
|\ \ | |/ |/| | | pfalcon-gen-close-ret-val
| * objgenerator: Implement return with value and .close() method.Paul Sokolovsky2014-03-26
| | | | | | | | | | | | Return with value gets converted to StopIteration(value). Implementation keeps optimizing against creating of possibly unneeded exception objects, so there're considerable refactoring to implement these features.
* | Merge pull request #370 from xbe/str-rfindDamien George2014-03-25
|\ \ | | | | | | py/objstr.c: Implement str.rfind() and add tests for it, refactor find_subbytes().
| * | Implement str.rfind() and add tests for it.xbe2014-03-24
| | |
* | | py: Removed some unnecessary exception objects.Damien George2014-03-25
| | | | | | | | | | | | | | | They still exist in commented-out form in objexcept.c if they are ever needed.
* | | objexcept: Add "args" exception attribute, as well as StopIteration.value.Paul Sokolovsky2014-03-25
| | |
* | | rt_load_method(): Add missing qstr_str() when getting type name.Paul Sokolovsky2014-03-25
|/ /
* / py: Implement support for "except Exception as var" clause.Paul Sokolovsky2014-03-23
|/ | | | | | | | For this, needed to implement DELETE_NAME bytecode (because var bound in except clause is automatically deleted at its end). http://docs.python.org/3/reference/compound_stmts.html#except : "When an exception has been assigned using as target, it is cleared at the end of the except clause."
* run-tests: Dump output of failing tests to files again.Paul Sokolovsky2014-03-23
| | | | This was a long-standing regression from converting script from sh to python.
* Merge pull request #359 from rjdowdall/masterDamien George2014-03-22
|\ | | | | Fixed some math functions and added more exceptions.
| * Fixed floor division on mp ints and small ints. Added a floordivide test case.Rachel Dowdall2014-03-22
| |
| * Fixed modulo operator on ints and mp ints to agree with python. Added ↵Rachel Dowdall2014-03-22
| | | | | | | | intdivmod.c and tests/basics/modulo.py.
| * Added exception hierarchy except for OSError and UnicodeError (requires ↵Rachel Dowdall2014-03-22
| | | | | | | | arguments). Comment out the errors that aren't needed if memory becomes an issue.
| * Fixed broken math functions that return bool and added some more.Rachel Dowdall2014-03-22
| |
* | objgenerator: Implement .throw() method to throw exceptions into generator.Paul Sokolovsky2014-03-22
| |
* | objgenerator: Implement throwing exceptions out of generator.Paul Sokolovsky2014-03-22
| |
* | objgenerator: Keep exception stack within generator object, like value stack.Paul Sokolovsky2014-03-22
|/ | | | This is required to properly handle exceptions across yields.
* py: Make 'bytes' be a proper type, support standard constructor args.Paul Sokolovsky2014-03-22
|
* objint_longlong: Add regression test for improper inplace op implementation.Paul Sokolovsky2014-03-22
|
* Merge pull request #351 from xbe/str-partitionDamien George2014-03-21
|\ | | | | Implement str.partition and add tests for it.
| * Implement str.rpartition and add tests for it.xbe2014-03-21
| |
| * Implement str.partition and add tests for it.xbe2014-03-21
| |
* | Rename test so that it doesn't clash with Python math module.Damien George2014-03-20
| |
* | Added various simple functions to math module.Rachel Dowdall2014-03-20
| |
* | py: Add mpz modulo operation.Damien George2014-03-20
|/
* Implement support for __str__ and __repr__ special methods in classes.Paul Sokolovsky2014-03-16
|
* py: In string.count, handle case of zero-length needle.Damien George2014-03-13
|
* Fix issues in str.count implementation.xbe2014-03-13
| | | | See pull request #343.
* Implement str.count and add tests for it.xbe2014-03-12
| | | | | | | Also modify mp_get_index to accept: 1. Indices that are or evaluate to a boolean. 2. Slice indices. Add tests for these two cases.
* Add more tests for multi-precision integers.Damien George2014-03-12
|