Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 349a988

Browse files
committed
Added third argument to call()
1 parent 99bbd18 commit 349a988

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Tools/modulator/Templates/object_tail

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static PyTypeObject $Abbrev$type = {
2020
$tp_as_sequence$, /*tp_as_sequence*/
2121
$tp_as_mapping$, /*tp_as_mapping*/
2222
(hashfunc)$tp_hash$, /*tp_hash*/
23-
(binaryfunc)$tp_call$, /*tp_call*/
23+
(ternaryfunc)$tp_call$, /*tp_call*/
2424
(reprfunc)$tp_str$, /*tp_str*/
2525

2626
/* Space for future expansion */

Tools/modulator/Templates/object_tp_call

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

22
static PyObject *
3-
$abbrev$_call(self, args)
3+
$abbrev$_call(self, args, kwargs)
44
$abbrev$object *self;
55
PyObject *args;
6+
PyObject *kwargs;
67
{
78
/* XXXX Return the result of calling self with argument args */
89
}

0 commit comments

Comments
 (0)