diff options
author | Georg Brandl <georg@python.org> | 2009-01-03 21:26:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-01-03 21:26:05 (GMT) |
commit | a1c6a1cea5af1d3c7682a8e99b001b0904480e4d (patch) | |
tree | 85461d1ba5237440b36f253b197779190226a294 /Doc/library/collections.rst | |
parent | 48310cd3f2e02ced9ae836ccbcb67e9af3097d62 (diff) | |
download | cpython-a1c6a1cea5af1d3c7682a8e99b001b0904480e4d.zip cpython-a1c6a1cea5af1d3c7682a8e99b001b0904480e4d.tar.gz cpython-a1c6a1cea5af1d3c7682a8e99b001b0904480e4d.tar.bz2 |
Merged revisions 68221 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68221 | georg.brandl | 2009-01-03 22:04:55 +0100 (Sat, 03 Jan 2009) | 2 lines
Remove tabs from the documentation.
........
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r-- | Doc/library/collections.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index f41abd6..4045d2e 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -41,7 +41,7 @@ ABC Inherits Abstract Methods Mixin :class:`Hashable` ``__hash__`` :class:`Iterable` ``__iter__`` :class:`Iterator` :class:`Iterable` ``__next__`` ``__iter__`` -:class:`Sized` ``__len__`` +:class:`Sized` ``__len__`` :class:`Callable` ``__call__`` :class:`Sequence` :class:`Sized`, ``__getitem__`` ``__contains__``. ``__iter__``, ``__reversed__``. @@ -68,7 +68,7 @@ ABC Inherits Abstract Methods Mixin :class:`MutableMapping` :class:`Mapping` ``__getitem__`` Inherited Mapping methods and ``__setitem__``, ``pop``, ``popitem``, ``clear``, ``update``, ``__delitem__``, and ``setdefault`` - ``__iter__``, and + ``__iter__``, and ``__len__`` :class:`MappingView` :class:`Sized` ``__len__`` @@ -84,7 +84,7 @@ particular functionality, for example:: size = None if isinstance(myvar, collections.Sized): - size = len(myvar) + size = len(myvar) Several of the ABCs are also useful as mixins that make it easier to develop classes supporting container APIs. For example, to write a class supporting |