[pypy-svn] rev 572 - pypy/trunk/src/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Tue May 27 16:14:12 CEST 2003


Author: arigo
Date: Tue May 27 16:14:12 2003
New Revision: 572

Modified:
   pypy/trunk/src/pypy/objspace/std/listobject.py
Log:
broken, i'm just sending this to Samuele

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	Tue May 27 16:14:12 2003
@@ -1,6 +1,7 @@
 from pypy.objspace.std.objspace import *
 from intobject import W_IntObject
 from sliceobject import W_SliceObject
+from instmethobject import W_InstMethObject
 
 
 class W_ListObject(object):
@@ -13,6 +14,9 @@
         reprlist = [repr(w_item) for w_item in w_self.wrappeditems]
         return "%s(%s)" % (w_self.__class__.__name__, ', '.join(reprlist))
 
+###    def append(w_self):
+###        .:.
+
 
 def list_unwrap(space, w_list):
     items = [space.unwrap(w_item) for w_item in w_list.wrappeditems]
@@ -85,3 +89,9 @@
 
 # upto here, lists are nearly identical to tuples.
 # XXX have to add over-allocation!
+
+###def getattr_list(space, w_list, w_attr):
+###    if space.is_true(space.eq(w_attr, space.wrap('append'))):
+###        ...
+###        return W_InstMethObject(w_list, w_builtinfn)
+###    raise FailedToImplement(space.w_AttributeError)


More information about the Pypy-commit mailing list