Use PyObject_RichCompare rather than PyObject_Cmp
This is what the interpreter does, and allows one to get at the actual object (rather than just its truth value).
Showing
Please register or sign in to comment
This is what the interpreter does, and allows one to get at the actual object (rather than just its truth value).