summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-09-22 16:14:13 (GMT)
committerGitHub <noreply@github.com>2017-09-22 16:14:13 (GMT)
commitb1558a0368949714f5765702a8d83a2d163eaacf (patch)
tree334462486643b33520ec65e76aa3a30bdefdf534 /Doc/includes
parentca72589bfabe2fd0e12eebfeb770b6c7a499b3e6 (diff)
downloadcpython-b1558a0368949714f5765702a8d83a2d163eaacf.zip
cpython-b1558a0368949714f5765702a8d83a2d163eaacf.tar.gz
cpython-b1558a0368949714f5765702a8d83a2d163eaacf.tar.bz2
bpo-31443: Update included code. (#3697)
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/noddy.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/Doc/includes/noddy.c b/Doc/includes/noddy.c
index 19a27a8..07b5d5a 100644
--- a/Doc/includes/noddy.c
+++ b/Doc/includes/noddy.c
@@ -27,6 +27,23 @@ static PyTypeObject noddy_NoddyType = {
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT, /* tp_flags */
"Noddy objects", /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ 0, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ PyType_GenericNew, /* tp_new */
};
static PyModuleDef noddymodule = {
@@ -42,7 +59,6 @@ PyInit_noddy(void)
{
PyObject* m;
- noddy_NoddyType.tp_new = PyType_GenericNew;
if (PyType_Ready(&noddy_NoddyType) < 0)
return NULL;