[docs] Typo or poor example on page docs.python.org/2/library/copy.html

Daniel Thomson danieloliverthomson at gmail.com
Fri Mar 7 17:59:49 CET 2014


On http://docs.python.org/2/library/copy.html I found the following passage:


"""

Two problems often exist with deep copy operations that don't exist with
shallow copy operations:


Recursive objects (compound objects that, directly or indirectly, contain a
reference to themselves) may cause a recursive loop.

Because deep copy copies everything it may copy too much, e.g.,
administrative data structures that should be shared even between copies.

"""


I believe that last sentience should read, "... administrative data
structures that should not be shared even between copies."


If the administrative data structures should be shared even between copies,
then it is a very poor example of a problem caused by deepcopy(). It would
instead be a very good reason to use deepcopy().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20140307/aa368589/attachment.html>


More information about the docs mailing list