summaryrefslogtreecommitdiffstats
path: root/Doc/includes/noddy3.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-05 07:55:26 (GMT)
committerGeorg Brandl <georg@python.org>2009-05-05 07:55:26 (GMT)
commit513352961411e48a0214fe3119f1b951ec2f5216 (patch)
tree9bd520a314c861634e9e0bd037396b534d2dace2 /Doc/includes/noddy3.c
parent42c66d4f47403310e3f5d2c64bbaae0d8ecb4d7f (diff)
downloadcpython-513352961411e48a0214fe3119f1b951ec2f5216.zip
cpython-513352961411e48a0214fe3119f1b951ec2f5216.tar.gz
cpython-513352961411e48a0214fe3119f1b951ec2f5216.tar.bz2
#5938: use PyVarObject_HEAD_INIT instead of PyObject_HEAD_INIT in noddy examples.
Diffstat (limited to 'Doc/includes/noddy3.c')
-rw-r--r--Doc/includes/noddy3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/noddy3.c b/Doc/includes/noddy3.c
index fac44d8..89f3a77 100644
--- a/Doc/includes/noddy3.c
+++ b/Doc/includes/noddy3.c
@@ -176,7 +176,7 @@ static PyMethodDef Noddy_methods[] = {
};
static PyTypeObject NoddyType = {
- PyObject_HEAD_INIT(NULL)
+ PyVarObject_HEAD_INIT(NULL, 0)
"noddy.Noddy", /* tp_name */
sizeof(Noddy), /* tp_basicsize */
0, /* tp_itemsize */