[pypy-svn] rev 717 - pypy/trunk/src/pypy/objspace/std
tismer at codespeak.net
tismer at codespeak.net
Thu May 29 19:55:03 CEST 2003
Author: tismer
Date: Thu May 29 19:55:02 2003
New Revision: 717
Modified:
pypy/trunk/src/pypy/objspace/std/listobject.py
Log:
list object small cleanups
Modified: pypy/trunk/src/pypy/objspace/std/listobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/listobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/listobject.py Thu May 29 19:55:02 2003
@@ -45,7 +45,7 @@
def pop(w_self, w_idx=-1):
return list_pop(w_self.space, w_self, w_idx)
- pop = implmethod().register(pop, W_IntObject)
+ pop = implmethod().register(pop, W_IntObject)
def remove(w_self, w_any):
return list_remove(w_self.space, w_self, w_any)
@@ -87,7 +87,8 @@
def getitem_list_int(space, w_list, w_index):
items = w_list.ob_item
idx = w_index.intval
- if idx < 0: idx += w_list.ob_size
+ if idx < 0:
+ idx += w_list.ob_size
if idx < 0 or idx >= w_list.ob_size:
raise OperationError(space.w_IndexError,
space.wrap("list index out of range"))
@@ -202,7 +203,8 @@
def setitem_list_int(space, w_list, w_index, w_any):
items = w_list.ob_item
idx = w_index.intval
- if idx < 0: idx += w_list.ob_size
+ if idx < 0:
+ idx += w_list.ob_size
if idx < 0 or idx >= w_list.ob_size:
raise OperationError(space.w_IndexError,
space.wrap("list index out of range"))
More information about the Pypy-commit
mailing list