mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Revert "bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)" (GH-22584)
This reverts commit 58a7da9e12
.
This commit is contained in:
parent
4f3c25043d
commit
4e0ce82058
16 changed files with 24 additions and 223 deletions
|
@ -5233,19 +5233,6 @@ int___round___impl(PyObject *self, PyObject *o_ndigits)
|
|||
return result;
|
||||
}
|
||||
|
||||
/*[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
|
||||
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue