From: Serhiy Storchaka Date: Sat, 7 May 2016 12:43:59 +0000 (+0300) Subject: Issue #17765: weakref.ref() no longer silently ignores keyword arguments. X-Git-Tag: v3.6.0a1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17e22959a444ee44c9462f3b66610950a8bc5a2b;p=thirdparty%2FPython%2Fcpython.git Issue #17765: weakref.ref() no longer silently ignores keyword arguments. Patch by Georg Brandl. --- 17e22959a444ee44c9462f3b66610950a8bc5a2b diff --cc Objects/weakrefobject.c index f42fe3d59dd0,7e6f36458bc6..f75b1e83a8ce --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@@ -265,10 -265,9 +265,9 @@@ insert_head(PyWeakReference *newref, Py } static int -parse_weakref_init_args(char *funcname, PyObject *args, PyObject *kwargs, +parse_weakref_init_args(const char *funcname, PyObject *args, PyObject *kwargs, PyObject **obp, PyObject **callbackp) { - /* XXX Should check that kwargs == NULL or is empty. */ return PyArg_UnpackTuple(args, funcname, 1, 2, obp, callbackp); }