@@ -33,7 +33,7 @@ \section{\module{sets} ---
3333The set classes are implemented using dictionaries. As a result, sets
3434cannot contain mutable elements such as lists or dictionaries.
3535However, they can contain immutable collections such as tuples or
36- instances of \class ( ImmutableSet) . For convenience in implementing
36+ instances of \class { ImmutableSet} . For convenience in implementing
3737sets of sets, inner sets are automatically converted to immutable
3838form, for example, \code {Set([Set(['dog'])])} is transformed to
3939\code {Set([ImmutableSet(['dog'])])}.
@@ -140,8 +140,8 @@ \subsection{Set Objects}
140140 \lineii {\var {s}.remove(\var {x})}
141141 {Remove element \var {x} from set \var {s}}
142142 \lineii {\var {s}.discard(\var {x})}
143- {Removes element \var {x} from set \var {s} like \var {s}.remove(\var {x})
144- but does not raise a KeyError if \var {x} is not in \var {s}}
143+ {Removes element \var {x} from set \var {s}. Like \var {s}.remove(\var {x})
144+ but does not raise KeyError if \var {x} is not in \var {s}}
145145 \lineii {\var {s}.pop()}
146146 {Remove and return an element from \var {s}; no guarantee is
147147 made about which element is removed}
@@ -212,6 +212,6 @@ \subsection{Protocol for automatic conversion to immutable
212212
213213The two mechanisms for adding hashability are normally invisible to the
214214user; however, a conflict can arise in a multi-threaded environment
215- where one thread is updating a Set while another has temporarily wrapped it
215+ where one thread is updating a set while another has temporarily wrapped it
216216in \class {_TemporarilyImmutableSet}. In other words, sets of mutable sets
217217are not thread-safe.
0 commit comments