Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 39653:a88bc3bad651 legacy-trunk
Fix SF bug #1545837: array.array borks on deepcopy.
array.__deepcopy__() needs to take an argument, even if it doesn't actually
use it. Will backport to 2.5 and 2.4 (if applicable.)
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Thu, 24 Aug 2006 18:40:20 +0000 |
| parents | 6cafdc81cfde |
| children | 77e0f4718a7c |
line wrap: on
line diff
--- a/Modules/arraymodule.c Wed Aug 23 22:17:59 2006 +0000 +++ b/Modules/arraymodule.c Thu Aug 24 18:40:20 2006 +0000 @@ -1495,7 +1495,7 @@ copy_doc}, {"count", (PyCFunction)array_count, METH_O, count_doc}, - {"__deepcopy__",(PyCFunction)array_copy, METH_NOARGS, + {"__deepcopy__",(PyCFunction)array_copy, METH_O, copy_doc}, {"extend", (PyCFunction)array_extend, METH_O, extend_doc},
