Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b65b493

Browse files
committed
Merged revisions 86625 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r86625 | eric.araujo | 2010-11-21 00:56:22 +0100 (dim., 21 nov. 2010) | 2 lines Document index and count as part of the Sequence ABC (#9746) ........
1 parent 91f8778 commit b65b493

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,12 @@ are sequences of the same type; *n*, *i* and *j* are integers:
711711
+------------------+--------------------------------+----------+
712712
| ``max(s)`` | largest item of *s* | |
713713
+------------------+--------------------------------+----------+
714+
| ``s.index(i)`` | index of the first occurence | |
715+
| | of *i* in *s* | |
716+
+------------------+--------------------------------+----------+
717+
| ``s.count(i)`` | total number of occurences of | |
718+
| | *i* in *s* | |
719+
+------------------+--------------------------------+----------+
714720

715721
Sequence types also support comparisons. In particular, tuples and lists are
716722
compared lexicographically by comparing corresponding elements. This means that

0 commit comments

Comments
 (0)