mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Elaborate datetime.timedelta docstring (GH-7458)
This commit is contained in:
parent
8deab96725
commit
d6a61f2326
1 changed files with 5 additions and 1 deletions
|
@ -2641,7 +2641,11 @@ static PyMethodDef delta_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char delta_doc[] =
|
static const char delta_doc[] =
|
||||||
PyDoc_STR("Difference between two datetime values.");
|
PyDoc_STR("Difference between two datetime values.\n\n"
|
||||||
|
"timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, "
|
||||||
|
"minutes=0, hours=0, weeks=0)\n\n"
|
||||||
|
"All arguments are optional and default to 0.\n"
|
||||||
|
"Arguments may be integers or floats, and may be positive or negative.");
|
||||||
|
|
||||||
static PyNumberMethods delta_as_number = {
|
static PyNumberMethods delta_as_number = {
|
||||||
delta_add, /* nb_add */
|
delta_add, /* nb_add */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue