diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-27 20:17:03 +0300 |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-27 20:17:03 +0300 |
| commit | 46e1ce214b5711e8dae63a1b5a0a7aafb371baf0 (patch) | |
| tree | 0230554f5bd4df8804946f5bb0634cefdbbbd2ae /Modules/_datetimemodule.c | |
| parent | 14e461d5b92000ec4e89182fa25ab0d5b5b31234 (diff) | |
| parent | 9594942716a8f9c557b85d31751753d89cd7cebf (diff) | |
| download | cpython-git-46e1ce214b5711e8dae63a1b5a0a7aafb371baf0.tar.gz | |
Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
Diffstat (limited to 'Modules/_datetimemodule.c')
| -rw-r--r-- | Modules/_datetimemodule.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 91d30a02e7..1836310709 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -1388,9 +1388,9 @@ static PyObject *one = NULL; /* 1 */ static PyObject *us_per_ms = NULL; /* 1000 */ static PyObject *us_per_second = NULL; /* 1000000 */ static PyObject *us_per_minute = NULL; /* 1e6 * 60 as Python int */ -static PyObject *us_per_hour = NULL; /* 1e6 * 3600 as Python long */ -static PyObject *us_per_day = NULL; /* 1e6 * 3600 * 24 as Python long */ -static PyObject *us_per_week = NULL; /* 1e6*3600*24*7 as Python long */ +static PyObject *us_per_hour = NULL; /* 1e6 * 3600 as Python int */ +static PyObject *us_per_day = NULL; /* 1e6 * 3600 * 24 as Python int */ +static PyObject *us_per_week = NULL; /* 1e6*3600*24*7 as Python int */ static PyObject *seconds_per_day = NULL; /* 3600*24 as Python int */ /* --------------------------------------------------------------------------- @@ -1403,7 +1403,7 @@ static PyObject *seconds_per_day = NULL; /* 3600*24 as Python int */ /* Convert a timedelta to a number of us, * (24*3600*self.days + self.seconds)*1000000 + self.microseconds - * as a Python int or long. + * as a Python int. * Doing mixed-radix arithmetic by hand instead is excruciating in C, * due to ubiquitous overflow possibilities. */ @@ -1455,7 +1455,7 @@ Done: return result; } -/* Convert a number of us (as a Python int or long) to a timedelta. +/* Convert a number of us (as a Python int) to a timedelta. */ static PyObject * microseconds_to_delta_ex(PyObject *pyus, PyTypeObject *type) @@ -3891,7 +3891,7 @@ static char time_doc[] = PyDoc_STR("time([hour[, minute[, second[, microsecond[, tzinfo]]]]]) --> a time object\n\ \n\ All arguments are optional. tzinfo may be None, or an instance of\n\ -a tzinfo subclass. The remaining arguments may be ints or longs.\n"); +a tzinfo subclass. The remaining arguments may be ints.\n"); static PyNumberMethods time_as_number = { 0, /* nb_add */ @@ -5081,7 +5081,7 @@ static char datetime_doc[] = PyDoc_STR("datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])\n\ \n\ The year, month and day arguments are required. tzinfo may be None, or an\n\ -instance of a tzinfo subclass. The remaining arguments may be ints or longs.\n"); +instance of a tzinfo subclass. The remaining arguments may be ints.\n"); static PyNumberMethods datetime_as_number = { datetime_add, /* nb_add */ |
