Lines Matching defs:op
991 classify_utcoffset(PyObject *op, PyObject *tzinfoarg, int *offset)
998 tzinfo = get_tzinfo_member(op); /* NULL means no tzinfo, not error */
1003 return (PyTime_Check(op) || PyDate_Check(op)) ?
1441 diff_to_bool(int diff, int op)
1446 switch (op) {
1454 assert(! "op unknown");
1760 delta_richcompare(PyDateTime_Delta *self, PyObject *other, int op)
1773 else if (op == Py_EQ || op == Py_NE)
1779 return diff_to_bool(diff, op);
2610 date_richcompare(PyDateTime_Date *self, PyObject *other, int op)
2623 else if (op == Py_EQ || op == Py_NE)
2629 return diff_to_bool(diff, op);
3341 time_richcompare(PyDateTime_Time *self, PyObject *other, int op)
3348 if (op == Py_EQ || op == Py_NE) {
3349 PyObject *result = op == Py_EQ ? Py_False : Py_True;
3367 return diff_to_bool(diff, op);
3385 return diff_to_bool(diff, op);
4270 datetime_richcompare(PyDateTime_DateTime *self, PyObject *other, int op)
4292 if (op == Py_EQ || op == Py_NE) {
4293 PyObject *result = op == Py_EQ ? Py_False : Py_True;
4314 return diff_to_bool(diff, op);
4330 return diff_to_bool(diff, op);