[Python-checkins] cpython (merge 3.3 -> default): merge with 3.3

georg.brandl python-checkins at python.org
Sun Oct 6 13:00:40 CEST 2013


http://hg.python.org/cpython/rev/ebf2b999c9b0
changeset:   86074:ebf2b999c9b0
parent:      86071:4777ac61aa42
parent:      86073:d9b58229aabe
user:        Georg Brandl <georg at python.org>
date:        Sun Oct 06 13:01:23 2013 +0200
summary:
  merge with 3.3

files:
  Doc/tutorial/datastructures.rst |  12 ++++++++++++
  1 files changed, 12 insertions(+), 0 deletions(-)


diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -54,6 +54,12 @@
    will see this notation frequently in the Python Library Reference.)
 
 
+.. method:: list.clear()
+   :noindex:
+
+   Remove all items from the list.  Equivalent to ``del a[:]``.
+
+
 .. method:: list.index(x)
    :noindex:
 
@@ -79,6 +85,12 @@
    Reverse the elements of the list in place.
 
 
+.. method:: list.copy()
+   :noindex:
+
+   Return a shallow copy of the list.  Equivalent to ``a[:]``.
+
+
 An example that uses most of the list methods::
 
    >>> a = [66.25, 333, 333, 1, 1234.5]

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list