Skip to content

Commit 9ab8eaf

Browse files
authored
doc: fix compile error on "shoddy" example extension (GH-217)
(cherry picked from commit fb8fe72)
1 parent 0936a00 commit 9ab8eaf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/includes/setup.py

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy