Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

Python 3.9 to JavaScript compiler - Lean, fast, open! -

Results 162 Transcrypt issues
Sort by recently updated
recently updated
newest added

I would like to create an online computer graphics course with Python, where users can write code in the browser, have it compiled to Javascript by a server and see...

There appears to be a bug in the runtime's implementation of the `pop()` method of `dict` objects. If the value in the dictionary associated with the given key happens to...

IS: bug
STATE: rdy to release

This code compiles : ``` from dataclasses import dataclass @dataclass class Foo : bar : str = 'bar' ``` And this doesnt : ``` from dataclasses import dataclass @dataclass class...

STATE: under consideration

When using IndexedDB, there is a continue() method in IDBCursor object. It is impossible to use in python due to parser error as "continue" is a reserved keyword. Trivial solution...

When using `list.sort(key=my_key_function)`, the `__kwargtrans__` gets overwritten in `__sort__`. I believe it will be the same for `list.sort(reverse=True)`. In transcrypt runtime.js: Line:795 ``` Array.prototype.py_sort = function () { __sort__.apply (null,...

IS: bug?

Another issue with the same name #650, was closed last week by @JennaSys. But as far as I can tell, there have been no nontrivial changes in 2 years. And...

Is math.copysign() missing in Transcrypt? in Python3.9.18: ``` >>> import math >>> math.copysign(1, 434) 1.0 >>> math.copysign(1, -434) -1.0 ``` Transcrypted: ` Uncaught TypeError: math.copysign is not a function `

x.sort() modifies x, but sorted(x) doesn't modify the argument x in Python as following: ``` >>> l=[2,1,3] >>> sorted(l) [1, 2, 3] >>> l [2, 1, 3] ``` But, I...

IS: bug

Transcrypt is great but not regularly updated... It would be great to support 3.12 syntax.

``` $> transcrypt -b -n -m transcrypttest.py Transcrypt (TM) Python to JavaScript Small Sane Subset Transpiler Version 3.9.0 Copyright (C) Geatec Engineering. License: Apache 2.0 Saving target code in: /home/linkus/trading/__target__/org.transcrypt.__runtime__.js...