These are chat archives for evhub/coconut
<*|), better lambdas (
->), and operators and functions for working with iterators as lazily evaluated lists (
consume, etc.) that are all lazily-evaluated unlike the corresponding Python versions.
executor.runreturn the result of
run_func? I've been implementing printing of the result of an expression and I would like
executor.runto return the result of the expression or
Noneif it is not an expedition. I have gotten ride of returning the result of
run_funcand it seams to work. Can you tell if this is Ok?
cocotest/py35_test.cocbecause Travis is falling, and I have no idea what this file is supposed to be.
.travis.ymlfiles. As for changing Coconut to print the result of an expression—
run_funcis exactly the place to do that. If you look in
_executeyou'll see an example of how to run Coconut code as an expression (the case where
evaluate = True). One thing to keep in mind: expressions vs. statements have two places where they are handled differently, both in which parser handles them (
parse_evalfor expressions and
parse_blockfor statements) and in which function executes them (
evalfor expressions and