views:

149

answers:

4

Hi everyone,

are there any tools for Windows to convert python to javascript?

regards

Alberto

+4  A: 

Check out Pyjamas

Jacob Relkin
+1  A: 

pyjamas?

http://code.google.com/p/pyjamas/

There is few howto pages for pyjamas with django, webpy, ...

http://code.google.com/p/pyjamas/w/list

S.Mark
how can I run this?
vandalo
Here is some wiki information regarding that http://code.google.com/p/pyjamas/w/list
S.Mark
A: 

I've found a Python-To-Javascript compiler (Pyjamas), but I'm not 100% that's what you're looking for.

To be brutally honest, they're extremely different languages with a hugely different syntax and different methods. I doubt you'll find a converter.

Daniel May
Thanks Daniel, I've found this code in python (100 lines) and I want to convert it in C#, VB.NET, C or javascript cause I need to use it in my software. Apparently, there are no tool to convert it in C# so I was thinking about javascript.
vandalo
Perhaps if you post the code in another (or this) question, we could find the equivalent methods for your preferred language :)
Daniel May
I've found the code on this site: http://utilitymill.com/edit/Regex_For_Rangeit's a number range regular expression validator. There's nothing like that for .net and I would like to use it.
vandalo
@vandalo: why not simply use it in python, as is? You can integrate python into your .ne framework through the ironPython implementation, and use the classes and methods from c#. Otherwise, Pyajamas is the way to go - but its purpose is not to yeld readable javascript - think of it more like a python to javascript compiler, just like GWT does with Java to javascript.
jsbueno
+1  A: 

Another one to look at is Skulpt.

Benno