diff options
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 92514d4154e..bc5b49dcf8b 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -5234,6 +5234,19 @@ int___round___impl(PyObject *self, PyObject *o_ndigits) } /*[clinic input] +int.is_integer + +Returns True for all integers. +[clinic start generated code]*/ + +static PyObject * +int_is_integer_impl(PyObject *self) +/*[clinic end generated code: output=90f8e794ce5430ef input=1c1a86957301d26d]*/ +{ + Py_RETURN_TRUE; +} + +/*[clinic input] int.__sizeof__ -> Py_ssize_t Returns size in memory, in bytes. @@ -5547,6 +5560,7 @@ static PyMethodDef long_methods[] = { {"__ceil__", long_long_meth, METH_NOARGS, "Ceiling of an Integral returns itself."}, INT___ROUND___METHODDEF + INT_IS_INTEGER_METHODDEF INT___GETNEWARGS___METHODDEF INT___FORMAT___METHODDEF INT___SIZEOF___METHODDEF |