PyUnicodeEncodeError_SetReason

assign a new value to the reason attribute return 0 on success, -1 on failure

  1. int PyUnicodeEncodeError_SetReason(PyObject* exc, const(char)* reason)
    extern (C)
    int
    PyUnicodeEncodeError_SetReason
    (
    ,
    const(char)* reason
    )
  2. int PyUnicodeDecodeError_SetReason(PyObject* exc, const(char)* reason)
  3. int PyUnicodeTranslateError_SetReason(PyObject* exc, const(char)* reason)

Meta