diff Objects/classobject.c @ 39921:49fbddfb1217 legacy-trunk

Patch #1567691: super() and new.instancemethod() now don't accept keyword arguments any more (previously they accepted them, but didn't use them).
author Georg Brandl <georg@python.org>
date Sat, 30 Sep 2006 08:43:30 +0000
parents a745a2bd48af
children 61cd8c87cfe2
line wrap: on
line diff
--- a/Objects/classobject.c	Sat Sep 30 07:31:57 2006 +0000
+++ b/Objects/classobject.c	Sat Sep 30 08:43:30 2006 +0000
@@ -2256,6 +2256,8 @@
 	PyObject *self;
 	PyObject *classObj = NULL;
 
+	if (!_PyArg_NoKeywords("instancemethod", kw))
+		return NULL;
 	if (!PyArg_UnpackTuple(args, "instancemethod", 2, 3,
 			      &func, &self, &classObj))
 		return NULL;