Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/extending/newtypes_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ allocation and deallocation. At a minimum, we need a deallocation method::
CustomObject *self = (CustomObject *) op;
Py_XDECREF(self->first);
Py_XDECREF(self->last);
Py_TYPE(self)->tp_free(op);
Py_TYPE(self)->tp_free(self);
}

which is assigned to the :c:member:`~PyTypeObject.tp_dealloc` member::
Expand Down
Loading