mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Give with_traceback a docstring.
This commit is contained in:
parent
4251481ed9
commit
7694100e4b
1 changed files with 6 additions and 1 deletions
|
@ -151,11 +151,16 @@ BaseException_with_traceback(PyObject *self, PyObject *tb) {
|
|||
return self;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(with_traceback_doc,
|
||||
"Exception.with_traceback(tb) --\n\
|
||||
set self.__traceback__ to tb and return self.");
|
||||
|
||||
|
||||
static PyMethodDef BaseException_methods[] = {
|
||||
{"__reduce__", (PyCFunction)BaseException_reduce, METH_NOARGS },
|
||||
{"__setstate__", (PyCFunction)BaseException_setstate, METH_O },
|
||||
{"with_traceback", (PyCFunction)BaseException_with_traceback, METH_O },
|
||||
{"with_traceback", (PyCFunction)BaseException_with_traceback, METH_O,
|
||||
with_traceback_doc},
|
||||
{NULL, NULL, 0, NULL},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue