pyjaco
pyjaco copied to clipboard
Python to JavaScript translator
I'm using main branch checkout. Output uses __kwargs_get but it is not defined. Neither defined in builtins generated by pyjs.py -b generate.
When I run `pyjs.py tests/algorithms/fib.py -o fib.js`, via command prompt, pyjs.py opens in my IDE. The javascript file does not get written. how can I fix this?
When using the zip file from the githup site the installation fails with Traceback (most recent call last): File "pyjaco/setup.py", line 8, in version = get_version() File "/home/silentrunner/python/pyjaco/_version.py", line 46,...
So I'm pulling pyjaco 1.0.0 off of PyPI, and getting this: ``` python - pyjaco - compiler - __init__.py - javascript.py - multiplexer.py - python.py - __init__.py - decorator.py -...
Example code: def createDict(key, value): return {key: value} if str(createDict("k", "v")) != "{'k': 'v'}": raise Exception("Dict wrong") The result is: {'key': 'v'} And it should be: {'k': 'v'}
Output should be namespaced and **builtins** should be accessed from this namespace. I would guess a default of pyjaco would be used, but it should also be configurable.
Please include some documentation, or put some up on readthedocs or pyjaco.org. It's easy to 'pip install' but a bit obscure to figure out what to do next.
This is not possible yet. Possible refactoring of the class system is needed Foo(object): var = "Foo" def bar(): return "Bar" f = Foo() f.bar = lambda self: self.var +...
I get this error with pretty much all the code that I have -- and it doesn't really tell me what does not work (which line in the original source...