mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
Backport trunk checkin r51565:
Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__() needs to take an argument, even if it doesn't actually use it.
This commit is contained in:
parent
e38ecee5c3
commit
04e820443b
3 changed files with 9 additions and 1 deletions
|
@ -1495,7 +1495,7 @@ PyMethodDef array_methods[] = {
|
|||
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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue