[pypy-svn] r42050 - pypy/extradoc/talk/rupy2007/demos

fijal at codespeak.net fijal at codespeak.net
Sat Apr 14 17:34:32 CEST 2007


Author: fijal
Date: Sat Apr 14 17:34:31 2007
New Revision: 42050

Added:
   pypy/extradoc/talk/rupy2007/demos/f.py
Log:
Add a function for translatorshell


Added: pypy/extradoc/talk/rupy2007/demos/f.py
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/rupy2007/demos/f.py	Sat Apr 14 17:34:31 2007
@@ -0,0 +1,16 @@
+
+class X:
+    def __init__(self, x):
+        self.y = x
+
+    def m(self):
+        return self.y + 3
+
+def two(x):
+    return X(x).m()
+
+def one(x):
+    if x:
+        return two(x)
+    else:
+        return 3



More information about the Pypy-commit mailing list