diff --git a/Objects/clinic/longobject.c.h b/Objects/clinic/longobject.c.h index 7073d61536d164..5fc310768bd4ba 100644 --- a/Objects/clinic/longobject.c.h +++ b/Objects/clinic/longobject.c.h @@ -231,14 +231,7 @@ PyDoc_STRVAR(int_as_integer_ratio__doc__, "as_integer_ratio($self, /)\n" "--\n" "\n" -"Given an integer x, return the tuple (int(x), 1).\n" -"\n" -">>> (10).as_integer_ratio()\n" -"(10, 1)\n" -">>> (-10).as_integer_ratio()\n" -"(-10, 1)\n" -">>> (0).as_integer_ratio()\n" -"(0, 1)"); +"Given an integer x, return the tuple (int(x), 1)."); #define INT_AS_INTEGER_RATIO_METHODDEF \ {"as_integer_ratio", (PyCFunction)int_as_integer_ratio, METH_NOARGS, int_as_integer_ratio__doc__}, @@ -482,4 +475,4 @@ int_is_integer(PyObject *self, PyObject *Py_UNUSED(ignored)) { return int_is_integer_impl(self); } -/*[clinic end generated code: output=ab356b117be2e104 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=1ee121cbd8c96cd2 input=a9049054013a1b77]*/ diff --git a/Objects/longobject.c b/Objects/longobject.c index 88342ae79f3b80..020af594d91518 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -6021,18 +6021,11 @@ int_bit_count_impl(PyObject *self) int.as_integer_ratio Given an integer x, return the tuple (int(x), 1). - ->>> (10).as_integer_ratio() -(10, 1) ->>> (-10).as_integer_ratio() -(-10, 1) ->>> (0).as_integer_ratio() -(0, 1) [clinic start generated code]*/ static PyObject * int_as_integer_ratio_impl(PyObject *self) -/*[clinic end generated code: output=e60803ae1cc8621a input=61de2d707e10af00]*/ +/*[clinic end generated code: output=e60803ae1cc8621a input=258f5b08307e7dcd]*/ { PyObject *ratio_tuple; PyObject *numerator = long_long(self);