Transcrypt
Transcrypt copied to clipboard
Python 3.9 to JavaScript compiler - Lean, fast, open! -
Problem with `del dict['key']` using `__pragma__('opov')` The `del dict['key']` statement works with no pragma, but dictionary key is not removed using `__pragma__('opov')` or `transcrypt -o` option. In addition, `del dict['key']`...
Of a low priority to me, but thought I'd report this anyways. Relative imports (`from .mod import ...`) don't seem to work in Transcrypt, and produce a 'could not find'...
[Following the good example of @JesusZerpa](https://github.com/QQuick/Transcrypt/issues/797) I would like to say thank you for this great project as well. I too am using this tool for a while now. And...
Add missing number base conversion functions (`bin`, `oct`, `hex`) to _\_\_builtin\_\_.js_ Add autotests for new number base conversion functions to _module_builtin_ Addresses most of issue: https://github.com/QQuick/Transcrypt/issues/752 After this PR, I...
Fixes the `maxreplace` (aka count) argument to the string replace function in _\_\_builtin\_\_.js_ Add autotests for string `replace` function to _module_builtin_ Fixes issue: https://github.com/QQuick/Transcrypt/issues/722
When I run in Transcrypt: ```python for i, c in enumerate(['a', 'b', 'c'], start=1): print(I, c) ``` I get the output: ``` 0 a 1 b 2 c ``` while...
Add `start` argument to `enumerate` function in _\_\_builtin\_\_.js_ Add autotests for `enumerate` function to _module_builtin_ Fixes issue https://github.com/QQuick/Transcrypt/issues/804
Hi, I'm new to Transcrypt, but I love the concept! I thought I'd try a simple "Hello World" project, but I'm running into the following error when I build using...
Python: ```py def compare(): x = [1,2] y = [1,2] console.log(f"array: {x!r} == {y!r} => {x == y}") x2 = (1,2) y2 = (1,2) console.log(f"tuple: {x2!r} == {y2!r} => {x2...
Hello. I'm learning Python on the go offline on Android 4.2 (it's a 10 inch tablet), mostly by reading articles stored on my computer's hard drive and placed on a...