Transcrypt
Transcrypt copied to clipboard
Python 3.9 to JavaScript compiler - Lean, fast, open! -
I reinstalled Transcrypt today, and I encountered a weird error. source: ``` def test_enumerate(): print('in test_enumerate()') l= [1,2,3,4,5] for i, v in enumerate(l): print(f'{i}: {v}') ``` output: ``` in test_enumerate()...
API/Lib
Is there a way to specify libraries? like I could specify that theirs an js equivalent library for this etc... Or at least to also transcrypt the Py libraries used?...
Does transcrypt have a programmatic API? I'd like to do something like this for a live-reload server: ```python from transcrypt import compilationApi def requestHandler(req): # Suppose browser has made request...
There is an apparent problem with `tuple + obj` and `list + obj` expressions. Rather than call `obj.__radd__`, it seems that `tuple.__add__`/`list.__add__` are called. Similar problem occurs with `tuple *...
Expression with in-place floordiv operator within `__pragma__('opov')` causes error. Error occurs with `x //= y` within `__pragma__('opov')`. Browser error: Uncaught SyntaxError: missing ) after argument list. Causes whole script to...
Expression with invert operator of an class instance causes error. Error occurs with `iobj = ~(obj)` expression. Browser error: Uncaught TypeError: Function.prototype.toString called on incompatible object. Worked properly with `iobj...
Vue's loader generated me commands such as: `Error: Command failed: python3 -m transcrypt --nomin --map --verbose --esv 6 "pages.today"` Which ended up in a bad exist (exception within an exception)...
I'm not sure if this a known difference with CPython, but when comparing dictionaries for equality, the transpiled JS always returns false. I assume this has to do with how...
Hi, I am trying to integrate a Javascript library whose name is 'babylon-htmlmesh'. As you can see, the name of the library includes '-' character. I found that Transcrypt mistranslated...
Fixed the following bugs and avoids to emit the wrong "var" keyword. def count_100(index): for j in range(100): index = index + 1 return index Generated wrong to: export var...