summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-10-06 22:13:34 -0700
committerGitHub <noreply@github.com>2020-10-06 22:13:34 -0700
commit1cc1a8f11a769c42a162229f3e1fb3a0fa74d4b9 (patch)
treee739e0905d3b06a1ebbbfca18fbf324989b99ad4 /Objects/longobject.c
parent044a1048ca93d466965afc027b91a5a9eb9ce23c (diff)
downloadcpython-git-revert-6121-is_integer.tar.gz
Revert "bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)"revert-6121-is_integer
This reverts commit 58a7da9e125422323f79c4ee95ac5549989d8162.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index bc5b49dcf8..92514d4154 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -5234,19 +5234,6 @@ 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.
@@ -5560,7 +5547,6 @@ 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