Author: Lukas Diekmann <[email protected]>
Branch: list-strategies
Changeset: r47423:7cfc2472e868
Date: 2011-02-16 13:03 +0100
http://bitbucket.org/pypy/pypy/changeset/7cfc2472e868/
Log: remove some comments; replaced len() by w_list.length() in repr
diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py
--- a/pypy/objspace/std/listobject.py
+++ b/pypy/objspace/std/listobject.py
@@ -519,7 +519,6 @@
def setitem__List_ANY_ANY(space, w_list, w_index, w_any):
idx = get_list_index(space, w_index)
try:
- #w_list.wrappeditems[idx] = w_any
w_list.setitem(idx, w_any)
except IndexError:
raise OperationError(space.w_IndexError,
@@ -596,7 +595,7 @@
listrepr = app.interphook("listrepr")
def repr__List(space, w_list):
- if len(w_list.wrappeditems) == 0:
+ if w_list.length() == 0:
return space.wrap('[]')
ec = space.getexecutioncontext()
w_currently_in_repr = ec._py_repr
@@ -617,7 +616,6 @@
return space.w_None
def list_append__List_ANY(space, w_list, w_any):
- #w_list.wrappeditems.append(w_any)
w_list.append(w_any)
return space.w_None
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit