Anyone seen a Javascript interpreter in Python?

holger krekel pyth at devel.trillke.net
Tue Dec 10 17:29:52 EST 2002


Brian Kelley wrote:
> holger krekel wrote:
> 
> >There would probably only be a small user base but i would
> >be among them, i guess :-)  For me it's just to tiresome when 
> >switching often from python server code to client javascript code.
> >
> >And for pythonistas it's still immediately recognizable as
> >javascript because of "this", "var" and other oddities :-)
> >
> "this" of course is just another name for "self" but in a global 
> setting.  Actually it was this syntax that allowed the XUL bindings to 
> work. 

What do mean with "this syntax"?  my proposal? the XUL bindings? 

> "this" was the root application window or document.  You end up 
> doing something like
> 
> exec java_script_function in {"this": self}
> 
> Which is pretty cool.

probably, but what exactly does java_script_function contain?

sorry, i am a bit lost.

regards,

    holger




More information about the Python-list mailing list