Remove frame_id_eq
This replaces frame_id_eq with operator== and operator!=. I wrote this for a version of this series that I later abandoned; but since it simplifies the code, I left this patch in. Approved-by: Tom Tomey <tom@tromey.com>
This commit is contained in:
parent
f91822c2b9
commit
a0cbd6505e
17 changed files with 65 additions and 79 deletions
|
@ -701,7 +701,7 @@ frapy_richcompare (PyObject *self, PyObject *other, int op)
|
|||
frame_object *other_frame = (frame_object *) other;
|
||||
|
||||
if (self_frame->frame_id_is_next == other_frame->frame_id_is_next
|
||||
&& frame_id_eq (self_frame->frame_id, other_frame->frame_id))
|
||||
&& self_frame->frame_id == other_frame->frame_id)
|
||||
result = Py_EQ;
|
||||
else
|
||||
result = Py_NE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue