[pypy-svn] r66543 - pypy/branch/io-lang/pypy/lang/io

david at codespeak.net david at codespeak.net
Thu Jul 23 17:33:25 CEST 2009


Author: david
Date: Thu Jul 23 17:33:24 2009
New Revision: 66543

Modified:
   pypy/branch/io-lang/pypy/lang/io/object.py
Log:
Improved Object for

Modified: pypy/branch/io-lang/pypy/lang/io/object.py
==============================================================================
--- pypy/branch/io-lang/pypy/lang/io/object.py	(original)
+++ pypy/branch/io-lang/pypy/lang/io/object.py	Thu Jul 23 17:33:24 2009
@@ -79,16 +79,16 @@
    assert argcount >= 4 and argcount <=5
 
    body = w_message.arguments[-1]
-   start = int(w_message.arguments[1].name)
-   stop = int(w_message.arguments[2].name)
+   start = w_message.arguments[1].eval(space, w_target, w_context).value
+   stop = w_message.arguments[2].eval(space, w_target, w_context).value
    if argcount == 4:
       step = 1
    else:
-      step = int(w_message.arguments[3].name)
+      step = w_message.arguments[3].eval(space, w_message, w_context).value
    
       
    key = w_message.arguments[0].name
-
+   
    for i in range(start, stop, step):
       w_context.slots[key] = W_Number(space, i)
       t = body.eval(space, w_context, w_context)



More information about the Pypy-commit mailing list