From: Raymond Hettinger Date: Mon, 8 Mar 2004 18:31:10 +0000 (+0000) Subject: The copy module now handles sets directly. The __copy__ methods are no X-Git-Tag: v2.4a1~733 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fd500b4a5a49b2844f0c9cd64a663fd0f6eb2f1;p=python The copy module now handles sets directly. The __copy__ methods are no longer needed. --- diff --git a/Objects/setobject.c b/Objects/setobject.c index dfad98f8ce..9aedc2f162 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -913,8 +913,6 @@ static PyMethodDef set_methods[] = { contains_doc}, {"copy", (PyCFunction)set_copy, METH_NOARGS, copy_doc}, - {"__copy__", (PyCFunction)set_copy, METH_NOARGS, - copy_doc}, {"discard", (PyCFunction)set_discard, METH_O, discard_doc}, {"difference", (PyCFunction)set_difference, METH_O, @@ -1041,8 +1039,6 @@ static PyMethodDef frozenset_methods[] = { contains_doc}, {"copy", (PyCFunction)frozenset_copy, METH_NOARGS, copy_doc}, - {"__copy__", (PyCFunction)frozenset_copy, METH_NOARGS, - copy_doc}, {"difference", (PyCFunction)set_difference, METH_O, difference_doc}, {"intersection",(PyCFunction)set_intersection, METH_O,