Lines Matching refs:reason
1512 return get_string(((PyUnicodeErrorObject *)exc)->reason, "reason");
1519 return get_string(((PyUnicodeErrorObject *)exc)->reason, "reason");
1526 return get_string(((PyUnicodeErrorObject *)exc)->reason, "reason");
1531 PyUnicodeEncodeError_SetReason(PyObject *exc, const char *reason)
1533 return set_string(&((PyUnicodeErrorObject *)exc)->reason, reason);
1538 PyUnicodeDecodeError_SetReason(PyObject *exc, const char *reason)
1540 return set_string(&((PyUnicodeErrorObject *)exc)->reason, reason);
1545 PyUnicodeTranslateError_SetReason(PyObject *exc, const char *reason)
1547 return set_string(&((PyUnicodeErrorObject *)exc)->reason, reason);
1557 Py_CLEAR(self->reason);
1564 &PyString_Type, &self->reason)) {
1565 self->encoding = self->object = self->reason = NULL;
1571 Py_INCREF(self->reason);
1581 Py_CLEAR(self->reason);
1598 Py_VISIT(self->reason);
1611 {"reason", T_OBJECT, offsetof(PyUnicodeErrorObject, reason), 0,
1612 PyDoc_STR("exception reason")},
1642 /* Get reason and encoding as strings, which they might not be if
1644 reason_str = PyObject_Str(uself->reason);
1699 Py_ssize_t start, Py_ssize_t end, const char *reason)
1702 encoding, object, length, start, end, reason);
1731 /* Get reason and encoding as strings, which they might not be if
1733 reason_str = PyObject_Str(uself->reason);
1784 Py_ssize_t start, Py_ssize_t end, const char *reason)
1787 encoding, object, length, start, end, reason);
1803 Py_CLEAR(self->reason);
1809 &PyString_Type, &self->reason)) {
1810 self->object = self->reason = NULL;
1815 Py_INCREF(self->reason);
1832 /* Get reason as a string, which it might not be if it's been
1834 reason_str = PyObject_Str(uself->reason);
1882 Py_ssize_t start, Py_ssize_t end, const char *reason)
1885 object, length, start, end, reason);