Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17)

Side by Side Diff: Doc/library/collections.rst

Issue 18758: Fix internal references in the documentation
Patch Set: Created 6 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/collections.abc.rst ('k') | Doc/library/configparser.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`collections` --- Container datatypes 1 :mod:`collections` --- Container datatypes
2 ========================================== 2 ==========================================
3 3
4 .. module:: collections 4 .. module:: collections
5 :synopsis: Container datatypes 5 :synopsis: Container datatypes
6 .. moduleauthor:: Raymond Hettinger <python@rcn.com> 6 .. moduleauthor:: Raymond Hettinger <python@rcn.com>
7 .. sectionauthor:: Raymond Hettinger <python@rcn.com> 7 .. sectionauthor:: Raymond Hettinger <python@rcn.com>
8 8
9 .. testsetup:: * 9 .. testsetup:: *
10 10
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 'bacde' 972 'bacde'
973 973
974 .. versionadded:: 3.2 974 .. versionadded:: 3.2
975 975
976 In addition to the usual mapping methods, ordered dictionaries also support 976 In addition to the usual mapping methods, ordered dictionaries also support
977 reverse iteration using :func:`reversed`. 977 reverse iteration using :func:`reversed`.
978 978
979 Equality tests between :class:`OrderedDict` objects are order-sensitive 979 Equality tests between :class:`OrderedDict` objects are order-sensitive
980 and are implemented as ``list(od1.items())==list(od2.items())``. 980 and are implemented as ``list(od1.items())==list(od2.items())``.
981 Equality tests between :class:`OrderedDict` objects and other 981 Equality tests between :class:`OrderedDict` objects and other
982 :class:`Mapping` objects are order-insensitive like regular dictionaries. 982 :class:`~collections.abc.Mapping` objects are order-insensitive like regular dic tionaries.
983 This allows :class:`OrderedDict` objects to be substituted anywhere a 983 This allows :class:`OrderedDict` objects to be substituted anywhere a
984 regular dictionary is used. 984 regular dictionary is used.
985 985
986 The :class:`OrderedDict` constructor and :meth:`update` method both accept 986 The :class:`OrderedDict` constructor and :meth:`update` method both accept
987 keyword arguments, but their order is lost because Python's function call 987 keyword arguments, but their order is lost because Python's function call
988 semantics pass-in keyword arguments using a regular unordered dictionary. 988 semantics pass-in keyword arguments using a regular unordered dictionary.
989 989
990 .. seealso:: 990 .. seealso::
991 991
992 `Equivalent OrderedDict recipe <http://code.activestate.com/recipes/576693/> `_ 992 `Equivalent OrderedDict recipe <http://code.activestate.com/recipes/576693/> `_
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 1121
1122 .. class:: UserString([sequence]) 1122 .. class:: UserString([sequence])
1123 1123
1124 Class that simulates a string or a Unicode string object. The instance's 1124 Class that simulates a string or a Unicode string object. The instance's
1125 content is kept in a regular string object, which is accessible via the 1125 content is kept in a regular string object, which is accessible via the
1126 :attr:`data` attribute of :class:`UserString` instances. The instance's 1126 :attr:`data` attribute of :class:`UserString` instances. The instance's
1127 contents are initially set to a copy of *sequence*. The *sequence* can 1127 contents are initially set to a copy of *sequence*. The *sequence* can
1128 be an instance of :class:`bytes`, :class:`str`, :class:`UserString` (or a 1128 be an instance of :class:`bytes`, :class:`str`, :class:`UserString` (or a
1129 subclass) or an arbitrary sequence which can be converted into a string usin g 1129 subclass) or an arbitrary sequence which can be converted into a string usin g
1130 the built-in :func:`str` function. 1130 the built-in :func:`str` function.
OLDNEW
« no previous file with comments | « Doc/library/collections.abc.rst ('k') | Doc/library/configparser.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+