The copy module now handles sets directly. The __copy__ methods are no

longer needed.
This commit is contained in:
Raymond Hettinger 2004-03-08 18:31:10 +00:00
parent 3e47f65e28
commit 3fd500b4a5

View File

@ -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,