Revert "bpo-26680: Incorporate is_integer in all built-in and standar… · python/cpython@4e0ce82 (original) (raw)

`@@ -4138,7 +4138,6 @@ Dec_BoolFunc(mpd_isqnan)

`

4138

4138

`Dec_BoolFunc(mpd_issnan)

`

4139

4139

`Dec_BoolFunc(mpd_issigned)

`

4140

4140

`Dec_BoolFunc(mpd_iszero)

`

4141

``

`-

Dec_BoolFunc(mpd_isinteger)

`

4142

4141

``

4143

4142

`/* Boolean functions, optional context arg */

`

4144

4143

`Dec_BoolFuncVA(mpd_isnormal)

`

`@@ -4773,7 +4772,6 @@ static PyMethodDef dec_methods [] =

`

4773

4772

` { "is_snan", dec_mpd_issnan, METH_NOARGS, doc_is_snan },

`

4774

4773

` { "is_signed", dec_mpd_issigned, METH_NOARGS, doc_is_signed },

`

4775

4774

` { "is_zero", dec_mpd_iszero, METH_NOARGS, doc_is_zero },

`

4776

``

`-

{ "is_integer", dec_mpd_isinteger, METH_NOARGS, doc_is_integer},

`

4777

4775

``

4778

4776

`/* Boolean functions, optional context arg */

`

4779

4777

` { "is_normal", (PyCFunction)(void(*)(void))dec_mpd_isnormal, METH_VARARGS|METH_KEYWORDS, doc_is_normal },

`

`@@ -5185,7 +5183,6 @@ DecCtx_BoolFunc_NO_CTX(mpd_isqnan)

`

5185

5183

`DecCtx_BoolFunc_NO_CTX(mpd_issigned)

`

5186

5184

`DecCtx_BoolFunc_NO_CTX(mpd_issnan)

`

5187

5185

`DecCtx_BoolFunc_NO_CTX(mpd_iszero)

`

5188

``

`-

DecCtx_BoolFunc_NO_CTX(mpd_isinteger)

`

5189

5186

``

5190

5187

`static PyObject *

`

5191

5188

`ctx_iscanonical(PyObject *context UNUSED, PyObject *v)

`

`@@ -5467,7 +5464,6 @@ static PyMethodDef context_methods [] =

`

5467

5464

` { "is_snan", ctx_mpd_issnan, METH_O, doc_ctx_is_snan },

`

5468

5465

` { "is_subnormal", ctx_mpd_issubnormal, METH_O, doc_ctx_is_subnormal },

`

5469

5466

` { "is_zero", ctx_mpd_iszero, METH_O, doc_ctx_is_zero },

`

5470

``

`-

{ "is_integer", ctx_mpd_isinteger, METH_O, doc_ctx_is_integer },

`

5471

5467

``

5472

5468

`/* Functions with a single decimal argument */

`

5473

5469

` { "_apply", PyDecContext_Apply, METH_O, NULL }, /* alias for apply */

`

`@@ -6101,3 +6097,5 @@ PyInit__decimal(void)

`

6101

6097

``

6102

6098

`return NULL; /* GCOV_NOT_REACHED */

`

6103

6099

`}

`

``

6100

+

``

6101

+