From 349a988ba72d24a0dacfe5e9ba082b86e997d119 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 12 Oct 1995 13:45:25 +0000 Subject: Added third argument to call() --- Tools/modulator/Templates/object_tail | 2 +- Tools/modulator/Templates/object_tp_call | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/modulator/Templates/object_tail b/Tools/modulator/Templates/object_tail index 65d29d3..1d1334c 100644 --- a/Tools/modulator/Templates/object_tail +++ b/Tools/modulator/Templates/object_tail @@ -20,7 +20,7 @@ static PyTypeObject $Abbrev$type = { $tp_as_sequence$, /*tp_as_sequence*/ $tp_as_mapping$, /*tp_as_mapping*/ (hashfunc)$tp_hash$, /*tp_hash*/ - (binaryfunc)$tp_call$, /*tp_call*/ + (ternaryfunc)$tp_call$, /*tp_call*/ (reprfunc)$tp_str$, /*tp_str*/ /* Space for future expansion */ diff --git a/Tools/modulator/Templates/object_tp_call b/Tools/modulator/Templates/object_tp_call index 32a3615..be4cc4b 100644 --- a/Tools/modulator/Templates/object_tp_call +++ b/Tools/modulator/Templates/object_tp_call @@ -1,8 +1,9 @@ static PyObject * -$abbrev$_call(self, args) +$abbrev$_call(self, args, kwargs) $abbrev$object *self; PyObject *args; + PyObject *kwargs; { /* XXXX Return the result of calling self with argument args */ } -- cgit v0.12