From: Zachary Ware Date: Thu, 20 Mar 2014 16:00:29 +0000 (-0500) Subject: Use "x" instead of "i" for s.index and s.count entries in sequence ops table. X-Git-Tag: v2.7.7rc1~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=163a214df8173f30889466d3b74d23e8b2dc78e7;p=python Use "x" instead of "i" for s.index and s.count entries in sequence ops table. Suggested by Bruce Esrig on docs@. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 442a214472..b474114b10 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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