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
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
picnixz committed Mar 24, 2025
commit 816c0138d8ccfe0f53bfe131fd50140208d64baa
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);
Comment thread
encukou marked this conversation as resolved.
}

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