Mercurial > cpython-lru_cache-weakref
annotate Tools/modulator/Templates/module_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 |
| 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) |
|
2713
cd9d86ecc175
Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents:
2466
diff
changeset
|
8 PyObject *self; /* Not used */ |
|
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 { |
|
322fc596f1c4
checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
11 |
|
2713
cd9d86ecc175
Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents:
2466
diff
changeset
|
12 if (!PyArg_ParseTuple(args, "")) |
|
2466
322fc596f1c4
checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
13 return NULL; |
|
2713
cd9d86ecc175
Templates converted to new naming conventions (thanks to Chak Tan)
Jack Jansen <jack.jansen@cwi.nl>
parents:
2466
diff
changeset
|
14 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
|
15 return Py_None; |
|
2466
322fc596f1c4
checkin of Jack's original version
Guido van Rossum <guido@python.org>
parents:
diff
changeset
|
16 } |
