[pypy-svn] rev 467 - in pypy/trunk/src/pypy: interpreter/test objspace/std

arigo at codespeak.net arigo at codespeak.net
Mon May 26 18:05:41 CEST 2003


Author: arigo
Date: Mon May 26 18:05:41 2003
New Revision: 467

Modified:
   pypy/trunk/src/pypy/interpreter/test/hello_world.py
   pypy/trunk/src/pypy/objspace/std/cpythonobject.py
Log:
builtin_app.py usable

Modified: pypy/trunk/src/pypy/interpreter/test/hello_world.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/test/hello_world.py	(original)
+++ pypy/trunk/src/pypy/interpreter/test/hello_world.py	Mon May 26 18:05:41 2003
@@ -1,6 +1,5 @@
 
-def main():
-    aStr = "hello world"
+def main(aStr):
     print len(aStr)
 
-main()
+map(main, ["hello world", "good bye"])

Modified: pypy/trunk/src/pypy/objspace/std/cpythonobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/cpythonobject.py	(original)
+++ pypy/trunk/src/pypy/objspace/std/cpythonobject.py	Mon May 26 18:05:41 2003
@@ -227,7 +227,7 @@
 def cpython_next(space, w_obj):
     obj = space.unwrap(w_obj)
     try:
-        result = w.next()
+        result = obj.next()
     except StopIteration:
         raise NoValue
     except:


More information about the Pypy-commit mailing list