]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-23802: patch: __deepcopy__ memo dict argument usage (GH-21326)
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Fri, 10 Jul 2020 00:36:35 +0000 (21:36 -0300)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2020 00:36:35 +0000 (21:36 -0300)
* Clarify __deepcopy__ memo dict argument usage

* Add full stop

Doc/library/copy.rst

index a8e8bfb1e832bb2dc569ff04edd27c731a28b3f0..176e01db6f9faf06c7b021b64d919b18d61a5277 100644 (file)
@@ -86,6 +86,7 @@ The latter is called to implement the deep copy operation; it is passed one
 argument, the ``memo`` dictionary.  If the :meth:`__deepcopy__` implementation needs
 to make a deep copy of a component, it should call the :func:`deepcopy` function
 with the component as first argument and the memo dictionary as second argument.
+The memo dictionary should be treated as an opaque object.
 
 
 .. seealso::