[pypy-svn] r39773 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Sat Mar 3 12:22:12 CET 2007
Author: arigo
Date: Sat Mar 3 12:22:08 2007
New Revision: 39773
Modified:
pypy/dist/pypy/objspace/std/listmultiobject.py
Log:
(cfbolz, arigo) Small changes to get the intention clearer.
Modified: pypy/dist/pypy/objspace/std/listmultiobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/listmultiobject.py (original)
+++ pypy/dist/pypy/objspace/std/listmultiobject.py Sat Mar 3 12:22:08 2007
@@ -1,8 +1,6 @@
from pypy.objspace.std.objspace import *
from pypy.objspace.std.inttype import wrapint
from pypy.objspace.std.sliceobject import W_SliceObject
-from pypy.objspace.std.tupleobject import W_TupleObject
-from pypy.objspace.std.stringobject import W_StringObject
from pypy.objspace.std import slicetype
from pypy.interpreter import gateway, baseobjspace
@@ -40,7 +38,7 @@
## pass
## def get_list_w(self):
-## pass
+## => returns an RPython list of all wrapped items
# The following operations return the list implementation that should
@@ -49,27 +47,27 @@
# the operation it can return None for the following ones:
def setitem(self, i, w_item):
- pass
+ return None
def insert(self, i, w_item):
- pass
+ return None
def delitem(self, index):
- pass
+ return None
def delitem_slice(self, start, stop):
- pass
+ return None
def append(self, w_item):
- pass
+ return None
def extend(self, other):
- pass
+ return None
# special case
def add(self, other):
- pass
+ return None
# Default implementations, can (but don't have to be) overridden:
More information about the Pypy-commit
mailing list