pscript
pscript copied to clipboard
Python to JavaScript compiler
pscript gives right result if I use two opening brackets and one closing bracket (3rd line) Python gives the same result with two opening and two closing brackets (2nd line)...
pscript generates broken code for functions like `def partial2(func, *args, **keywords):` When trying to parse *args it overwrites arguments[0]: func = arguments[0].flx_args[0]; /* overwrites here */ args = arguments[0].flx_args.slice(1); /*...
Fixes #23 **Problem:** ``` def partial2(a1, a2, *args, **kwargs): print(a1, a2) print(args) print(kwargs) ``` The original order of assignment is **kwargs, a1, a2, *args. But after assigning `a1` (which is...
Would be nice for interactive use. See #27. I *do not* want to add a dependency just for this, but we can probably detect the case, support it when the...
In the docs, it says `yield` is unsupported because JavaScript support for this is not that common. Not sure when that was written, but it looks [this is supported on...
In the docs, it says `slice` doesn't support steps because JavaScript doesn't. Though it looks like there is a [proposal]( https://github.com/tc39/proposal-slice-notation ) to add slices with steps to JavaScript. In...
In the docs, it says `set` is unsupported because JavaScript doesn't have one. Though it looks like `Set` was added to ES6 as noted in [this SO answer]( https://stackoverflow.com/a/30902786 )....
@almarklein commented on [Tue Jan 03 2017](https://github.com/flexxui/flexx/issues/332) This is an issue to collect "glitches" in PyScript, because it's so easy to forget about them. We'll have to see whether to...
@almarklein commented on [Sat Aug 22 2015](https://github.com/flexxui/flexx/issues/19) If PyScript can compile itself, we can generate a JS implementation of the PyScript transpiler, which means we can allow people to write...
@almarklein commented on [Thu Nov 12 2015](https://github.com/flexxui/flexx/issues/54) Would help get to #19. In particular, a parser that generates commonast. My best bet is on using something based off libpy2to3. pyjs...