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:
parent
c847bd707f
commit
163a214df8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue