RapydScript icon indicating copy to clipboard operation
RapydScript copied to clipboard

Python-inspired, decluttered JavaScript

Results 24 RapydScript issues
Sort by recently updated
recently updated
newest added

There are some slices examples, some not working: ```python print("Must display : [1, 'a', 'b', 'c', 5]") a = [1, 2, 3, 4, 5] a[1:4] = ['a', 'b', 'c'] print(a)...

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

Seemingly the three `salvatore.pythonanywhere.com` resources are gone. They seem like pretty awesome demos so I put them inside a `` thing, in case someone can replace them with an updated...

Hello, I am new to this project , just wonder how to use RapydScript with JavaScript MutationObserver?

Hello There, This is my directory structure: ``` module1 ---__init__.pyj ---test.pyj file1 ---__init__.pyj ---main.pyj ``` in test.pyj ``` def hello(): print("Hello") ``` and in my main.pyj ``` from module1.test import...

CoffeeScript has the concept of existential operator: `a?`, which compiles to the following: ``` typeof a !== "undefined" && a !== null ``` Until recently, RapydScript used `==` for equality...

enhancement

I'm trying to make a Python program that works in both CPython and RapydScript. The code itself works in both, but it currently needs shlex. If I could catch ImportError,...

The compilation failed on importing local python module that exists in the same folder as the main file: `import config` The shown error is: ``` [ImportError: Failed Import: 'config' module...

Test: ``` class Test: def __init__(self): self.value1 = null def method(self): self.value1 = 0 ``` ``` $ npx rapydscript -p -6 typescriptKlass.pyj > typescriptKlass.ts $ tsc --lib es7 typescriptKlass.ts typescriptKlass.ts:26:18...