Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

... in python code aborts compilation

Open L1nkus opened this issue 2 years ago • 1 comments

$> 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

L1nkus avatar Oct 11 '23 18:10 L1nkus

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.

JennaSys avatar Jun 24 '24 03:06 JennaSys