summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-21 14:32:33 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-21 14:32:33 (GMT)
commit9c6c47bf4b37f0bd17d00c624ac955157768f72a (patch)
tree6ab626142a8f3bdbf54156941dba5bc6513bbfc4 /Doc/tutorial
parent6cda88ea11e5434e8292ce28ce18679f929d01e4 (diff)
downloadcpython-9c6c47bf4b37f0bd17d00c624ac955157768f72a.zip
cpython-9c6c47bf4b37f0bd17d00c624ac955157768f72a.tar.gz
cpython-9c6c47bf4b37f0bd17d00c624ac955157768f72a.tar.bz2
Mark the descitems in the tutorial as "noindex" so that :meth: cross-refs don't link to them.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/datastructures.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 9f3320f..b6f022c 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -18,17 +18,20 @@ objects:
.. method:: list.append(x)
+ :noindex:
Add an item to the end of the list; equivalent to ``a[len(a):] = [x]``.
.. method:: list.extend(L)
+ :noindex:
Extend the list by appending all the items in the given list; equivalent to
``a[len(a):] = L``.
.. method:: list.insert(i, x)
+ :noindex:
Insert an item at a given position. The first argument is the index of the
element before which to insert, so ``a.insert(0, x)`` inserts at the front of
@@ -36,12 +39,14 @@ objects:
.. method:: list.remove(x)
+ :noindex:
Remove the first item from the list whose value is *x*. It is an error if there
is no such item.
.. method:: list.pop([i])
+ :noindex:
Remove the item at the given position in the list, and return it. If no index
is specified, ``a.pop()`` removes and returns the last item in the list. (The
@@ -51,22 +56,26 @@ objects:
.. method:: list.index(x)
+ :noindex:
Return the index in the list of the first item whose value is *x*. It is an
error if there is no such item.
.. method:: list.count(x)
+ :noindex:
Return the number of times *x* appears in the list.
.. method:: list.sort()
+ :noindex:
Sort the items of the list, in place.
.. method:: list.reverse()
+ :noindex:
Reverse the elements of the list, in place.