mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
wrap docstrings so they are less than 80 columns. add spaces after commas.
This commit is contained in:
parent
a5a80cb4a4
commit
017749c33d
1 changed files with 5 additions and 3 deletions
|
|
@ -106,7 +106,8 @@ gen_send_ex(PyGenObject *gen, PyObject *arg, int exc)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(send_doc,
|
PyDoc_STRVAR(send_doc,
|
||||||
"send(arg) -> send 'arg' into generator, return next yielded value or raise StopIteration.");
|
"send(arg) -> send 'arg' into generator,\n\
|
||||||
|
return next yielded value or raise StopIteration.");
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
gen_send(PyGenObject *gen, PyObject *arg)
|
gen_send(PyGenObject *gen, PyObject *arg)
|
||||||
|
|
@ -203,7 +204,8 @@ gen_del(PyObject *self)
|
||||||
|
|
||||||
|
|
||||||
PyDoc_STRVAR(throw_doc,
|
PyDoc_STRVAR(throw_doc,
|
||||||
"throw(typ[,val[,tb]]) -> raise exception in generator, return next yielded value or raise StopIteration.");
|
"throw(typ[,val[,tb]]) -> raise exception in generator,\n\
|
||||||
|
return next yielded value or raise StopIteration.");
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
gen_throw(PyGenObject *gen, PyObject *args)
|
gen_throw(PyGenObject *gen, PyObject *args)
|
||||||
|
|
@ -259,7 +261,7 @@ gen_throw(PyGenObject *gen, PyObject *args)
|
||||||
goto failed_throw;
|
goto failed_throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
PyErr_Restore(typ,val,tb);
|
PyErr_Restore(typ, val, tb);
|
||||||
return gen_send_ex(gen, Py_None, 1);
|
return gen_send_ex(gen, Py_None, 1);
|
||||||
|
|
||||||
failed_throw:
|
failed_throw:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue