PyOpinion: Does Python Programming Marginalize You?

Tim Peters tim_one at email.msn.com
Tue Jun 6 13:38:34 EDT 2000


[Michael Hudson]
> ...
> Tangentially, does anybody know of any implementations of JavaScript
> (not necessarily connected to a browser) that let you type interactive
> commands into a listener and genereally muck about with the language?

Unsure about NS, but under IE5 you can type JavaScript expressions directly
into the address bar (as if entering a URL), but prefixed with
"javascript:".  For example, type this in:

javascript: 1+2

then hit ENTER; IE5 echoes back

javascript:%201+2

in the address bar and displays

3

in the main window.  Unfortunately(?), vrbl assignments do not persist, so
you're really limited to a single line of expressions:

javascript: x=3; y=4; x*x+y*y

So the answer to your question is "no" <wink>.  However, as with the Python
shell, it's a convenient way to see what a line of JS does.

not-sure-this-new-fangled-web-stuff-will-ever-catch-on-ly y'rs  - tim






More information about the Python-list mailing list