Skip to content

Commit 15de5b9

Browse files
committed
keep noindex
1 parent dd1bbb5 commit 15de5b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/copy.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@ In order for a class to define its own copy implementation, it can define
9191
special methods :meth:`~object.__copy__` and :meth:`~object.__deepcopy__`.
9292

9393
.. method:: object.__copy__(self)
94+
:noindex:
9495

9596
Called to implement the shallow copy operation;
9697
no additional arguments are passed.
9798

9899
.. method:: object.__deepcopy__(self, memo)
100+
:noindex:
99101

100102
Called to implement the deep copy operation; it is passed one
101103
argument, the *memo* dictionary. If the ``__deepcopy__`` implementation needs
@@ -112,6 +114,7 @@ and only supports named tuples created by :func:`~collections.namedtuple`,
112114
:mod:`dataclasses`, and other classes which define method :meth:`~object.__replace__`.
113115

114116
.. method:: object.__replace__(self, /, **changes)
117+
:noindex:
115118

116119
This method should create a new object of the same type,
117120
replacing fields with values from *changes*.

0 commit comments

Comments
 (0)