[Python-checkins] bpo-23802: patch: __deepcopy__ memo dict argument usage (GH-21326)

Joannah Nanjekye webhook-mailer at python.org
Thu Jul 9 20:36:43 EDT 2020


https://github.com/python/cpython/commit/3cbade7d309ab1ea97ec286d19d506df30bd1ab7
commit: 3cbade7d309ab1ea97ec286d19d506df30bd1ab7
branch: master
author: Joannah Nanjekye <33177550+nanjekyejoannah at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-07-09T21:36:35-03:00
summary:

bpo-23802: patch: __deepcopy__ memo dict argument usage (GH-21326)

* Clarify __deepcopy__ memo dict argument usage

* Add full stop

files:
M Doc/library/copy.rst

diff --git a/Doc/library/copy.rst b/Doc/library/copy.rst
index a8e8bfb1e832b..176e01db6f9fa 100644
--- a/Doc/library/copy.rst
+++ b/Doc/library/copy.rst
@@ -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::



More information about the Python-checkins mailing list