mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
The copy module now handles sets directly. The __copy__ methods are no
longer needed.
This commit is contained in:
parent
3e47f65e28
commit
3fd500b4a5
1 changed files with 0 additions and 4 deletions
|
@ -913,8 +913,6 @@ static PyMethodDef set_methods[] = {
|
||||||
contains_doc},
|
contains_doc},
|
||||||
{"copy", (PyCFunction)set_copy, METH_NOARGS,
|
{"copy", (PyCFunction)set_copy, METH_NOARGS,
|
||||||
copy_doc},
|
copy_doc},
|
||||||
{"__copy__", (PyCFunction)set_copy, METH_NOARGS,
|
|
||||||
copy_doc},
|
|
||||||
{"discard", (PyCFunction)set_discard, METH_O,
|
{"discard", (PyCFunction)set_discard, METH_O,
|
||||||
discard_doc},
|
discard_doc},
|
||||||
{"difference", (PyCFunction)set_difference, METH_O,
|
{"difference", (PyCFunction)set_difference, METH_O,
|
||||||
|
@ -1041,8 +1039,6 @@ static PyMethodDef frozenset_methods[] = {
|
||||||
contains_doc},
|
contains_doc},
|
||||||
{"copy", (PyCFunction)frozenset_copy, METH_NOARGS,
|
{"copy", (PyCFunction)frozenset_copy, METH_NOARGS,
|
||||||
copy_doc},
|
copy_doc},
|
||||||
{"__copy__", (PyCFunction)frozenset_copy, METH_NOARGS,
|
|
||||||
copy_doc},
|
|
||||||
{"difference", (PyCFunction)set_difference, METH_O,
|
{"difference", (PyCFunction)set_difference, METH_O,
|
||||||
difference_doc},
|
difference_doc},
|
||||||
{"intersection",(PyCFunction)set_intersection, METH_O,
|
{"intersection",(PyCFunction)set_intersection, METH_O,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue