Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1e8154

Browse files
author
Michael W. Hudson
committed
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.
1 parent fc8341d commit b1e8154

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

Objects/classobject.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -155,21 +155,6 @@ PyDoc_STRVAR(class_doc,
155155
Create a class object. The name must be a string; the second argument\n\
156156
a tuple of classes, and the third a dictionary.");
157157

158-
static PyObject *
159-
new_class(PyObject* unused, PyObject* args)
160-
{
161-
PyObject *name;
162-
PyObject *classes;
163-
PyObject *dict;
164-
165-
if (!PyArg_ParseTuple(args, "SO!O!:class",
166-
&name,
167-
&PyTuple_Type, &classes,
168-
&PyDict_Type, &dict))
169-
return NULL;
170-
return PyClass_New(classes, dict, name);
171-
}
172-
173158
static PyObject *
174159
class_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
175160
{

0 commit comments

Comments
 (0)