@@ -4856,9 +4856,9 @@ operations:
48564856 Return a shallow copy of the set.
48574857
48584858
4859- Note, the non-operator versions of :meth: `union `, :meth: ` intersection `,
4860- :meth: `difference `, :meth: `symmetric_difference `, :meth: `issubset `, and
4861- :meth: `issuperset ` methods will accept any iterable as an argument. In
4859+ Note, the non-operator versions of :meth: `~frozenset. union `,
4860+ :meth: `~frozenset.intersection `, :meth: ` ~frozenset. difference `, :meth: `~frozenset. symmetric_difference `, :meth: `~frozenset. issubset `, and
4861+ :meth: `~frozenset. issuperset ` methods will accept any iterable as an argument. In
48624862contrast, their operator based counterparts require their arguments to be
48634863sets. This precludes error-prone constructions like ``set('abc') & 'cbs' ``
48644864in favor of the more readable ``set('abc').intersection('cbs') ``.
@@ -4934,14 +4934,14 @@ apply to immutable instances of :class:`frozenset`:
49344934 Remove all elements from the set.
49354935
49364936
4937- Note, the non-operator versions of the :meth: `update `,
4938- :meth: `intersection_update `, :meth: `difference_update `, and
4939- :meth: `symmetric_difference_update ` methods will accept any iterable as an
4937+ Note, the non-operator versions of the :meth: `~set. update `,
4938+ :meth: `~set. intersection_update `, :meth: `~set. difference_update `, and
4939+ :meth: `~set. symmetric_difference_update ` methods will accept any iterable as an
49404940argument.
49414941
49424942Note, the *elem * argument to the :meth: `~object.__contains__ `,
4943- :meth: `remove `, and
4944- :meth: `discard ` methods may be a set. To support searching for an equivalent
4943+ :meth: `~set. remove `, and
4944+ :meth: `~set. discard ` methods may be a set. To support searching for an equivalent
49454945frozenset, a temporary one is created from *elem *.
49464946
49474947
0 commit comments