This looks great and more advanced than the other Python to JavaScript translators on the market.<p>Last year, I wrote a comparison of the ones I could find, but none of them actually was in very good shape: <a href="http://chargen.blogspot.com/2011/08/survey-of-python-to-javascript.html" rel="nofollow">http://chargen.blogspot.com/2011/08/survey-of-python-to-java...</a>
This is really cool and it's the first time I see this project. Is there still progress going on? The last commit was 3 months ago.<p>Unfortunately, the error reporting of the live demo isn't very helpful at this stage. I quickly ran into some compilation errors:<p><pre><code> syntax not supported (IfExp: <_ast.IfExp object at 0x7f161d834a10>)</code></pre>
This is an awesome and exciting project!<p>The unique trouble I found by myself is that list comprehension are not fully supported.<p><pre><code> [x for x in (1, 2, 3, 4) if (x % 2) == 0]
</code></pre>
This won't work as expected. I opened an issue about this: <a href="https://github.com/chrivers/pyjaco/issues/69" rel="nofollow">https://github.com/chrivers/pyjaco/issues/69</a>
> print [] == []<p>True<p>ok, I love this thing already!<p>wow, it also knows about bound-methods <a href="https://gist.github.com/2947907" rel="nofollow">https://gist.github.com/2947907</a> , no need to hack with _.bindAll().
Does this provide a sane way to deal with callbacks? Obviously, in JavaScript you're writing callbacks all the time, and nested defs (think callbacks which call something that requires a callback... repeat) in Python are ugly and annoying. For example, try writing factorial in CPS style sometime in Python.