diff Objects/typeobject.c @ 41816:ec83d21065aa legacy-trunk

Stop using METH_OLDARGS implicitly
author Neal Norwitz <nnorwitz@gmail.com>
date Tue, 22 May 2007 07:16:44 +0000
parents 980ff0b1b957
children 6620a510e9a9
line wrap: on
line diff
--- a/Objects/typeobject.c	Tue May 22 07:16:10 2007 +0000
+++ b/Objects/typeobject.c	Tue May 22 07:16:44 2007 +0000
@@ -4259,7 +4259,7 @@
 }
 
 static struct PyMethodDef tp_new_methoddef[] = {
-	{"__new__", (PyCFunction)tp_new_wrapper, METH_KEYWORDS,
+	{"__new__", (PyCFunction)tp_new_wrapper, METH_VARARGS|METH_KEYWORDS,
 	 PyDoc_STR("T.__new__(S, ...) -> "
 		   "a new object with type S, a subtype of T")},
 	{0}