[pypy-commit] pypy py3.3: fill in copy's doc string
pjenvey
noreply at buildbot.pypy.org
Tue Apr 15 20:31:59 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3.3
Changeset: r70641:d71832240c1a
Date: 2014-04-15 11:31 -0700
http://bitbucket.org/pypy/pypy/changeset/d71832240c1a/
Log: fill in copy's doc string
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
@@ -592,6 +592,10 @@
'''L.clear() -- remove all items'''
self.clear(space)
+ def descr_copy(self, space):
+ '''L.copy() -> list -- a shallow copy of L'''
+ return self.clone()
+
def descr_remove(self, space, w_value):
'L.remove(value) -- remove first occurrence of value'
# needs to be safe against eq_w() mutating the w_list behind our back
@@ -1845,7 +1849,7 @@
sort = interp2app(W_ListObject.descr_sort),
index = interp2app(W_ListObject.descr_index),
- copy = interp2app(W_ListObject.clone),
+ copy = interp2app(W_ListObject.descr_copy),
append = interp2app(W_ListObject.append),
reverse = interp2app(W_ListObject.descr_reverse),
__reversed__ = interp2app(W_ListObject.descr_reversed),
More information about the pypy-commit
mailing list