From: Michael W. Hudson Date: Tue, 18 Jun 2002 12:38:06 +0000 (+0000) Subject: About the new but unreferenced new_class, Guido sez: X-Git-Tag: v2.3c1~5287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1e8154013feaa42d08e3a9b992357c365129126;p=python About the new but unreferenced new_class, Guido sez: > Looks like an experiment by Oren Tirosh that didn't get nuked. I > think you can safely lose it. It's gone. --- diff --git a/Objects/classobject.c b/Objects/classobject.c index 979c967a06..88bd20c29e 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -155,21 +155,6 @@ PyDoc_STRVAR(class_doc, Create a class object. The name must be a string; the second argument\n\ a tuple of classes, and the third a dictionary."); -static PyObject * -new_class(PyObject* unused, PyObject* args) -{ - PyObject *name; - PyObject *classes; - PyObject *dict; - - if (!PyArg_ParseTuple(args, "SO!O!:class", - &name, - &PyTuple_Type, &classes, - &PyDict_Type, &dict)) - return NULL; - return PyClass_New(classes, dict, name); -} - static PyObject * class_new(PyTypeObject *type, PyObject *args, PyObject *kwds) {