Lines Matching defs:other
2235 delta_cmp(PyObject *self, PyObject *other)
2237 int diff = GET_TD_DAYS(self) - GET_TD_DAYS(other);
2239 diff = GET_TD_SECONDS(self) - GET_TD_SECONDS(other);
2242 GET_TD_MICROSECONDS(other);
2248 delta_richcompare(PyObject *self, PyObject *other, int op)
2250 if (PyDelta_Check(other)) {
2251 int diff = delta_cmp(self, other);
3462 date_richcompare(PyObject *self, PyObject *other, int op)
3464 if (PyDate_Check(other)) {
3466 ((PyDateTime_Date *)other)->data,
3931 PyDateTime_TimeZone *other, int op)
3935 if (!PyTimezone_Check(other)) {
3938 return delta_richcompare(self->offset, other->offset, op);
4467 time_richcompare(PyObject *self, PyObject *other, int op)
4473 if (! PyTime_Check(other))
4476 if (GET_TIME_TZINFO(self) == GET_TIME_TZINFO(other)) {
4478 ((PyDateTime_Time *)other)->data,
4485 offset2 = time_utcoffset(other, NULL);
4496 ((PyDateTime_Time *)other)->data,
4509 offsecs2 = TIME_GET_HOUR(other) * 3600 +
4510 TIME_GET_MINUTE(other) * 60 +
4511 TIME_GET_SECOND(other) -
4517 TIME_GET_MICROSECOND(other);
5859 pep495_eq_exception(PyObject *self, PyObject *other,
5876 flip_offset = get_flip_fold_offset(other);
5888 datetime_richcompare(PyObject *self, PyObject *other, int op)
5894 if (! PyDateTime_Check(other)) {
5895 if (PyDate_Check(other)) {
5897 return NotImplemented here to give the other object
5899 Date, if the other object is a Date, it would
5907 return cmperror(self, other);
5912 if (GET_DT_TZINFO(self) == GET_DT_TZINFO(other)) {
5914 ((PyDateTime_DateTime *)other)->data,
5921 offset2 = datetime_utcoffset(other, NULL);
5932 ((PyDateTime_DateTime *)other)->data,
5935 int ex = pep495_eq_exception(self, other, offset1, offset2);
5948 other);
5957 int ex = pep495_eq_exception(self, other, offset1, offset2);
7090 two possible dst() outcomes, one zero and the other non-zero). Therefore