Skip to content

Commit 913c8d3

Browse files
Use full qualied names.
1 parent 3300d71 commit 913c8d3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Doc/library/stdtypes.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
48624862
contrast, their operator based counterparts require their arguments to be
48634863
sets. This precludes error-prone constructions like ``set('abc') & 'cbs'``
48644864
in 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
49404940
argument.
49414941

49424942
Note, 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
49454945
frozenset, a temporary one is created from *elem*.
49464946

49474947

0 commit comments

Comments
 (0)