Juha Jeronen
Juha Jeronen
Supporting all of the generator API is a large project, so maybe just implement the very basics, showing how it could be done. With the new `get_cc` function in 0.15.1,...
Example moved into [`unpythonic.syntax.tests.test_conts_multishot`](../tree/master/unpythonic/syntax/tests/test_conts_multishot.py).
Now we just need to update the documentation, particularly the section on continuations in `doc/macros.md`. - Document `get_cc` and the pattern `k = call_cc[get_cc()]`. Material exists in the docstring of...
Now the demo includes also a `MultishotIterator` that shows how to make a `@multishot` multi-shot generator conform to the most often used parts of Python's generator API.
Linking to [the relevant PEP](https://www.python.org/dev/peps/pep-0492/). Maybe [this one too](https://www.python.org/dev/peps/pep-0479/).
Having done some frontend coding in the meantime, I now have a fairly good understanding of what `async`/`await` do, but this is not a high priority for `unpythonic`. Help is...
- At least `continuations` needs an `await` when it calls into the continuation it extracted, if the continuation is an async function. - Also tail calls into async continuations should...
Doing some of this already in 0.14.3. It's been useful, a number of small bugs have been discovered and fixed.
Currently at 89%. The remaining **missing** (i.e. non-covered) lines fall into a few categories: - False negatives, mostly related to macro expansion of block macros (https://github.com/nedbat/coveragepy/issues/1004), plus some module docstrings....
Now at 91%. - Beside just improving test coverage, we should aim at high coverage (as high as reasonable) in each module's own unit tests. - Currently (esp. in low-level...