summaryrefslogtreecommitdiffstats
path: root/Doc/library/operator.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-03 21:18:54 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-03 21:18:54 (GMT)
commit48310cd3f2e02ced9ae836ccbcb67e9af3097d62 (patch)
tree04c86b387c11bfd4835a320e76bbb2ee24626e0d /Doc/library/operator.rst
parent3d3558a4653fcfcbdcbb75bda5d61e93c48f4d51 (diff)
downloadcpython-48310cd3f2e02ced9ae836ccbcb67e9af3097d62.zip
cpython-48310cd3f2e02ced9ae836ccbcb67e9af3097d62.tar.gz
cpython-48310cd3f2e02ced9ae836ccbcb67e9af3097d62.tar.bz2
Remove trailing whitespace.
Diffstat (limited to 'Doc/library/operator.rst')
-rw-r--r--Doc/library/operator.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst
index a67c6d8..d1d1c16 100644
--- a/Doc/library/operator.rst
+++ b/Doc/library/operator.rst
@@ -7,7 +7,7 @@
.. testsetup::
-
+
import operator
from operator import itemgetter
@@ -209,7 +209,7 @@ Operations which work with sequences include:
Remove the value of *a* at index *b*.
-
+
.. function:: getitem(a, b)
__getitem__(a, b)
@@ -337,7 +337,7 @@ objects.
>>> class C:
... pass
- ...
+ ...
>>> import operator
>>> obj = C()
>>> operator.isMappingType(obj)
@@ -427,9 +427,9 @@ expect a function argument.
def g(obj):
return tuple(obj[item] for item in items)
return g
-
- The items can be any type accepted by the operand's :meth:`__getitem__`
- method. Dictionaries accept any hashable value. Lists, tuples, and
+
+ The items can be any type accepted by the operand's :meth:`__getitem__`
+ method. Dictionaries accept any hashable value. Lists, tuples, and
strings accept an index or a slice:
>>> itemgetter(1)('ABCDEFG')