[pypy-svn] r16307 - pypy/dist/pypy/objspace/std

ale at codespeak.net ale at codespeak.net
Tue Aug 23 18:08:49 CEST 2005


Author: ale
Date: Tue Aug 23 18:08:48 2005
New Revision: 16307

Modified:
   pypy/dist/pypy/objspace/std/iterobject.py
Log:
dont use unwrap

Modified: pypy/dist/pypy/objspace/std/iterobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/iterobject.py	(original)
+++ pypy/dist/pypy/objspace/std/iterobject.py	Tue Aug 23 18:08:48 2005
@@ -22,10 +22,7 @@
         W_Object.__init__(w_self, space)
         w_self.w_seq = w_seq
         w_self.w_len = space.len(w_seq)
-	if index < 0:
-            w_self.index = space.unwrap(w_self.w_len) + index
-        else:
-            w_self.index = space.unwrap(w_self.w_len) 
+        w_self.index = space.int_w(w_self.w_len) + index
 
 
 registerimplementation(W_SeqIterObject)



More information about the Pypy-commit mailing list