]> granicus.if.org Git - python/commit
Include memo in the documented signature of copy.deepcopy()
authorStephan Hoyer <shoyer@gmail.com>
Mon, 29 Oct 2018 18:30:12 +0000 (11:30 -0700)
committerBrian Curtin <brian@python.org>
Mon, 29 Oct 2018 18:30:12 +0000 (12:30 -0600)
commit0200928e8df012d408530b06a98119024bc82511
tree45ec5b565af6c1f3fae1a2f2110b558ceed91576
parent3b05ad7be09af1d4510eb698b0a70d36387f296e
Include memo in the documented signature of copy.deepcopy()

* Include memo in the documented signature of copy.deepcopy()

The memo argument is mentioned lower on the doc page under writing a
`__deepcopy__` method, but is not included in the documented function signature.
This makes it easy to miss, and can lead to incorrect/buggy implementations of
`__deepcopy__` -- which is exatly what just happpend to me!
Doc/library/copy.rst