annotate Tools/modulator/Templates/object_method @ 4566:6403c94de50d legacy-trunk

Added safeguard against failure in __del__.
author Guido van Rossum <guido@python.org>
date Wed, 27 Nov 1996 19:39:58 +0000
parents a1087aa641cd
children 847425d5bca8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2754
a1087aa641cd Jim Fulton's change to support doc strings
Jack Jansen <jack.jansen@cwi.nl>
parents: 2713
diff changeset
1
a1087aa641cd Jim Fulton's change to support doc strings
Jack Jansen <jack.jansen@cwi.nl>
parents: 2713
diff changeset
2 static char $abbrev$_$method$__doc__[] =
a1087aa641cd Jim Fulton's change to support doc strings
Jack Jansen <jack.jansen@cwi.nl>
parents: 2713
diff changeset
3 ""
a1087aa641cd Jim Fulton's change to support doc strings
Jack Jansen <jack.jansen@cwi.nl>
parents: 2713
diff changeset
4 ;
2466
322fc596f1c4 checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff changeset
5
2713
cd9d86ecc175 Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents: 2466
diff changeset
6 static PyObject *
2466
322fc596f1c4 checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 $abbrev$_$method$(self, args)
322fc596f1c4 checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 $abbrev$object *self;
2713
cd9d86ecc175 Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents: 2466
diff changeset
9 PyObject *args;
2466
322fc596f1c4 checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff changeset
10 {
2713
cd9d86ecc175 Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents: 2466
diff changeset
11 if (!PyArg_ParseTuple(args, ""))
2466
322fc596f1c4 checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 return NULL;
2713
cd9d86ecc175 Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents: 2466
diff changeset
13 Py_INCREF(Py_None);
cd9d86ecc175 Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents: 2466
diff changeset
14 return Py_None;
2466
322fc596f1c4 checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff changeset
15 }
2713
cd9d86ecc175 Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents: 2466
diff changeset
16