diff Objects/typeobject.c @ 39922:13cf344de8c9 2.4

Patch #1567691: super() and new.instancemethod() now don't accept keyword arguments any more (previously they accepted them, but didn't use them). (backport from rev. 52058)
author Georg Brandl <georg@python.org>
date Sat, 30 Sep 2006 08:43:35 +0000
parents 8296fb96cc18
children ab13576374b1
line wrap: on
line diff
--- a/Objects/typeobject.c	Sat Sep 30 07:24:53 2006 +0000
+++ b/Objects/typeobject.c	Sat Sep 30 08:43:35 2006 +0000
@@ -5706,6 +5706,8 @@
 	PyObject *obj = NULL;
 	PyTypeObject *obj_type = NULL;
 
+	if (!_PyArg_NoKeywords("super", kwds))
+		return -1;
 	if (!PyArg_ParseTuple(args, "O!|O:super", &PyType_Type, &type, &obj))
 		return -1;
 	if (obj == Py_None)