TranscryptOrg / Transcrypt

Python 3.9 to JavaScript compiler - Lean, fast, open!
https://www.transcrypt.org
Apache License 2.0
2.86k stars 215 forks source link

... in python code aborts compilation #864

Open L1nkus opened 1 year ago

L1nkus commented 1 year ago
$> 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

Error while compiling (offending file last):
    File 'transcrypttest', line 43, namely:

    Error while compiling (offending file last):
    File 'transcrypttest', line 43, namely:

Aborted

removing ... fixes

JennaSys commented 5 months ago

Can you show an example of the actual Python code your were trying to transpile?

In general, the Python code has to be syntactically correct Python since it is processed by the Python AST module when being converted to JavaScript.