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
apply victor's comment
  • Loading branch information
shihai1991 committed Nov 13, 2020
commit 3d2f872aac9a1c269d1db886c715359de21c5f28
3 changes: 1 addition & 2 deletions Objects/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -2137,8 +2137,7 @@ _PyTrash_end(PyThreadState *tstate)
int

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add comment explaining that it is used by the Py_TRASHCAN_BEGIN macro.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, updated.

_PyTrash_cond(PyObject *op, void *dealloc)
Comment thread
shihai1991 marked this conversation as resolved.
Resolved
{
PyTypeObject *tp = Py_TYPE(op);
return tp->tp_dealloc == (destructor)dealloc;
return Py_TYPE(op)->tp_dealloc == (destructor)dealloc;
}


Expand Down