mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Two new methods
This commit is contained in:
parent
5214a29774
commit
8d2033f08b
2 changed files with 20 additions and 0 deletions
9
Tools/modulator/Templates/object_tp_call
Normal file
9
Tools/modulator/Templates/object_tp_call
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
static PyObject *
|
||||
$abbrev$_call(self, args)
|
||||
$abbrev$object *self;
|
||||
PyObject *args;
|
||||
{
|
||||
/* XXXX Return the result of calling self with argument args */
|
||||
}
|
||||
|
11
Tools/modulator/Templates/object_tp_str
Normal file
11
Tools/modulator/Templates/object_tp_str
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
static PyObject *
|
||||
$abbrev$_str(self)
|
||||
$abbrev$object *self;
|
||||
{
|
||||
PyObject *s;
|
||||
|
||||
/* XXXX Add code here to put self into s */
|
||||
return s;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue