diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-12-13 20:35:45 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-12-13 20:35:45 -0800 |
commit | 8783a09b1d0a02a378406b9d879818a6c02a6358 (patch) | |
tree | a37ed35e94d7e5404e2fe90edaa82f30e80e42f4 /demos/python.html | |
parent | 45c53b2520a326b8d870321a6f39ac17fbc297c9 (diff) |
minor fixes for python demo
Diffstat (limited to 'demos/python.html')
-rw-r--r-- | demos/python.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/demos/python.html b/demos/python.html index d56fc436..d785de70 100644 --- a/demos/python.html +++ b/demos/python.html @@ -73,8 +73,12 @@ </p> <p> <ul> - <li>Most core language stuff should work, except for importing modules. Please report bugs if you find them!</li> - <li>Note that this is an unoptimized build (see <a href="http://code.google.com/p/emscripten/issues/detail?id=8">issue 8</a>)</li> + <li>Most core language stuff should work, except for importing non-static modules (in other words, <code>import sys</code> will + work, but other modules won't).</li> + <li>Please report bugs if you find them!</li> + <li>Note that this is an unoptimized build (see <a href="http://code.google.com/p/emscripten/issues/detail?id=8">issue 8</a>), + so it may run slowly. Speed may depend on the browser - Chrome 8 in particular is slow, dunno why (maybe + <a href="http://code.google.com/p/v8/issues/detail?id=947">V8 issue 947</a>?). Firefox 4 beta 7+ is recommended.</li> <li>The editor is <a href="https://mozillalabs.com/skywriter/">Skywriter</a>. </ul> </p> @@ -83,9 +87,10 @@ <form onsubmit="execute(editor.value); return false"> <b>Enter some Python</b>: <input type="submit" value="execute"> - <div id="the_input"> -print "Hello world! Here are some numbers:", [2*x for x in range(5)][:4] -print "Here is a random language feature:", dir(None) + <div id="the_input">import sys +print 'Hello world! This is Python {} on {}'.format(sys.version, sys.platform) + +print 'Here are some numbers:', [2*x for x in range(5)][:4] </div> </form> <hr> |