[Python-checkins] r86625 - python/branches/py3k/Doc/library/stdtypes.rst

eric.araujo python-checkins at python.org
Sun Nov 21 00:56:22 CET 2010


Author: eric.araujo
Date: Sun Nov 21 00:56:22 2010
New Revision: 86625

Log:
Document index and count as part of the Sequence ABC (#9746)


Modified:
   python/branches/py3k/Doc/library/stdtypes.rst

Modified: python/branches/py3k/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/py3k/Doc/library/stdtypes.rst	(original)
+++ python/branches/py3k/Doc/library/stdtypes.rst	Sun Nov 21 00:56:22 2010
@@ -876,6 +876,12 @@
 +------------------+--------------------------------+----------+
 | ``max(s)``       | largest item of *s*            |          |
 +------------------+--------------------------------+----------+
+| ``s.index(i)``   | index of the first occurence   |          |
+|                  | of *i* in *s*                  |          |
++------------------+--------------------------------+----------+
+| ``s.count(i)``   | total number of occurences of  |          |
+|                  | *i* in *s*                     |          |
++------------------+--------------------------------+----------+
 
 Sequence types also support comparisons.  In particular, tuples and lists are
 compared lexicographically by comparing corresponding elements.  This means that


More information about the Python-checkins mailing list