Use "x" instead of "i" for s.index and s.count entries in sequence ops table.

Suggested by Bruce Esrig on docs@.
This commit is contained in:
Zachary Ware 2014-03-20 11:00:29 -05:00
parent c847bd707f
commit 163a214df8
1 changed files with 4 additions and 4 deletions

View File

@ -754,11 +754,11 @@ are sequences of the same type; *n*, *i* and *j* are integers:
+------------------+--------------------------------+----------+ +------------------+--------------------------------+----------+
| ``max(s)`` | largest item of *s* | | | ``max(s)`` | largest item of *s* | |
+------------------+--------------------------------+----------+ +------------------+--------------------------------+----------+
| ``s.index(i)`` | index of the first occurrence | | | ``s.index(x)`` | index of the first occurrence | |
| | of *i* in *s* | | | | of *x* in *s* | |
+------------------+--------------------------------+----------+ +------------------+--------------------------------+----------+
| ``s.count(i)`` | total number of occurrences of | | | ``s.count(x)`` | total number of occurrences of | |
| | *i* in *s* | | | | *x* in *s* | |
+------------------+--------------------------------+----------+ +------------------+--------------------------------+----------+
Sequence types also support comparisons. In particular, tuples and lists Sequence types also support comparisons. In particular, tuples and lists