Commit 163a214d authored by Zachary Ware's avatar Zachary Ware

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

Suggested by Bruce Esrig on docs@.
parent c847bd70
......@@ -754,11 +754,11 @@ are sequences of the same type; *n*, *i* and *j* are integers:
+------------------+--------------------------------+----------+
| ``max(s)`` | largest item of *s* | |
+------------------+--------------------------------+----------+
| ``s.index(i)`` | index of the first occurrence | |
| | of *i* in *s* | |
| ``s.index(x)`` | index of the first occurrence | |
| | of *x* in *s* | |
+------------------+--------------------------------+----------+
| ``s.count(i)`` | total number of occurrences of | |
| | *i* in *s* | |
| ``s.count(x)`` | total number of occurrences of | |
| | *x* in *s* | |
+------------------+--------------------------------+----------+
Sequence types also support comparisons. In particular, tuples and lists
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment