why there is no pythonscript insine web browsers?

Daniel Fetchinson fetchinson at googlemail.com
Mon Nov 12 20:48:50 CET 2007


> I'm an old programmer coming from a cobol background and started to
> learn python. I'm using javasript for web based applications but after I
> started to learn python, the javascript language started to seem ugly to
> me. Now I'm wondering why there is java support on web browsers but no
> python support? there is even a vbscript support inside MS-IE but there
> is no python support. it would be really nice and easy for me to use
> python instead of javascript to write those ajax scripts.
>
> Please tell me, is there a python substitude for JRE ?

Java has nothing to do with javascript. I guess you are really asking
about javascript so let's forget about java.

Having a full python runtime in a browser would be a really bad idea
because imagine a website telling your browser to "import os ;
os.unlink( 'your_secret_very_important_file' )". If you want to write
your browser client code nevertheless in python you can use pypy [1]
to translate it into javascript. This is also what I do and it works
pretty well in conjunction with MochiKit [2].

HTH,
Daniel

[1] http://codespeak.net/pypy/dist/pypy/doc/news.html
[2] http://mochikit.com



More information about the Python-list mailing list