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

Skip to content

Commit fb8fe72

Browse files
authored
doc: fix compile error on "shoddy" example extension (GH-215)
1 parent 2c700af commit fb8fe72

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/includes/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
Extension("noddy2", ["noddy2.c"]),
66
Extension("noddy3", ["noddy3.c"]),
77
Extension("noddy4", ["noddy4.c"]),
8+
Extension("shoddy", ["shoddy.c"]),
89
])

Doc/includes/shoddy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Shoddy_init(Shoddy *self, PyObject *args, PyObject *kwds)
3131

3232

3333
static PyTypeObject ShoddyType = {
34-
PyObject_HEAD_INIT(NULL)
34+
PyVarObject_HEAD_INIT(NULL, 0)
3535
"shoddy.Shoddy", /* tp_name */
3636
sizeof(Shoddy), /* tp_basicsize */
3737
0, /* tp_itemsize */

0 commit comments

Comments
 (0)