[pypy-svn] r41223 - pypy/dist/pypy/doc/play1

fijal at codespeak.net fijal at codespeak.net
Sat Mar 24 09:12:36 CET 2007


Author: fijal
Date: Sat Mar 24 09:12:34 2007
New Revision: 41223

Added:
   pypy/dist/pypy/doc/play1/
   pypy/dist/pypy/doc/play1/pypy-c-taint.html
   pypy/dist/pypy/doc/play1/pypy-c-thunk.html
   pypy/dist/pypy/doc/play1/pypy-c.html
   pypy/dist/pypy/doc/play1/pypy-cli.html
   pypy/dist/pypy/doc/play1/pyrolog-c.html
   pypy/dist/pypy/doc/play1/python.html
   pypy/dist/pypy/doc/play1/test_snippets.py
Log:
Intermediate checkin - how play1 help structure will look like,
right now nothing is automatically chosen from this directory,
although that's the direction.


Added: pypy/dist/pypy/doc/play1/pypy-c-taint.html
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/play1/pypy-c-taint.html	Sat Mar 24 09:12:34 2007
@@ -0,0 +1,4 @@
+The PyPy standard interpreter compiled to C using
+the <a href="http://codespeak.net/pypy/dist/pypy/doc/objspace-proxies.html#the-taint-object-space">taint object space</a>. Example (<a href="javascript:execute_snippet(2)">execute</a>):
+<pre>%s</pre>
+Now try hard getting to value of <i>x</i> :-)

Added: pypy/dist/pypy/doc/play1/pypy-c-thunk.html
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/play1/pypy-c-thunk.html	Sat Mar 24 09:12:34 2007
@@ -0,0 +1,4 @@
+The PyPy standard interpreter compiled to C using the
+<a href="http://codespeak.net/pypy/dist/pypy/doc/objspace-proxies.html#the-thunk-object-space">thunk object space</a>. Example (<a href="javascript:execute_snippet(1)">execute</a>):
+<pre>%s</pre>
+And try <i>x</i>.

Added: pypy/dist/pypy/doc/play1/pypy-c.html
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/play1/pypy-c.html	Sat Mar 24 09:12:34 2007
@@ -0,0 +1,14 @@
+This is the PyPy standard interpreter translated to C with the following features:
+<ul>
+   <li><b>Stackless</b> - You can use all stackless features including
+   tasklets, channels, coroutines and greenlets, more information and some
+   examples can be found in the 
+   <a href="http://codespeak.net/pypy/dist/pypy/doc/stackless.html">PyPy stackless documentation</a>.
+   </li>
+   <li><b>Transparent proxy</b> - This is a unique PyPy interpreter feature,
+   which allows you to provide an application-level controller for any kind of
+   object. Details and snippets can be found in the
+   <a href="http://codespeak.net/pypy/dist/pypy/doc/objspace-proxies.html#tproxy">transparent proxy documentation</a>. Example (<a href="javascript:execute_snippet(0)">execute</a>):
+   <pre>%s</pre>
+   </li>
+</ul>

Added: pypy/dist/pypy/doc/play1/pypy-cli.html
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/play1/pypy-cli.html	Sat Mar 24 09:12:34 2007
@@ -0,0 +1 @@
+The PyPy standard interpreter compiled to CLI

Added: pypy/dist/pypy/doc/play1/pyrolog-c.html
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/play1/pyrolog-c.html	Sat Mar 24 09:12:34 2007
@@ -0,0 +1 @@
+The Prolog interpreter compiled to C.

Added: pypy/dist/pypy/doc/play1/python.html
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/play1/python.html	Sat Mar 24 09:12:34 2007
@@ -0,0 +1 @@
+just CPython, play as you like :)

Added: pypy/dist/pypy/doc/play1/test_snippets.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/play1/test_snippets.py	Sat Mar 24 09:12:34 2007
@@ -0,0 +1,16 @@
+from pypy.conftest import gettestobjspace
+
+class AppTest_pypy_c(object):
+    def setup_class(cls):
+        cls.space = gettestobjspace(**{"objspace.std.withtproxy": True,
+            "usemodules":("_stackless",)})
+        
+    def test_snippet_1(self):
+        from tputil import make_proxy
+        history = []
+        def recorder(operation):
+            history.append(operation) 
+            return operation.delegate()
+
+        l = make_proxy(recorder, obj=[])
+



More information about the Pypy-commit mailing list