[pypy-svn] r39675 - pypy/dist/pypy/objspace/std
gbrandl at codespeak.net
gbrandl at codespeak.net
Fri Mar 2 14:41:00 CET 2007
Author: gbrandl
Date: Fri Mar 2 14:40:58 2007
New Revision: 39675
Modified:
pypy/dist/pypy/objspace/std/listmultiobject.py
Log:
(gbrandl, cfbolz): Better name for empty list method.
Modified: pypy/dist/pypy/objspace/std/listmultiobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/listmultiobject.py (original)
+++ pypy/dist/pypy/objspace/std/listmultiobject.py Fri Mar 2 14:40:58 2007
@@ -251,7 +251,7 @@
return "RListImplementation(%s)" % (self.list_w, )
class EmptyListImplementation(ListImplementation):
- def make_impl(self, w_item):
+ def make_list_with_one_item(self, w_item):
space = self.space
if space.config.objspace.std.withfastslice:
return SliceTrackingListImplementation(space, [w_item])
@@ -284,13 +284,13 @@
raise IndexError
def insert(self, i, w_item):
- return self.make_impl(w_item)
+ return self.make_list_with_one_item(w_item)
def add(self, other):
return other.copy()
def append(self, w_item):
- return self.make_impl(w_item)
+ return self.make_list_with_one_item(w_item)
def extend(self, other):
return other.copy()
More information about the Pypy-commit
mailing list