# [Python-checkins] CVS: python/dist/src/Modules mathmodule.c,2.60,2.61

Tim Peters tim_one@users.sourceforge.net
Tue, 04 Sep 2001 16:17:44 -0700

```Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv26643/python/Modules

Modified Files:
mathmodule.c
Log Message:
Mechanical fiddling to make this easier to work with in my editor.
Repaired the ldexp docstring (said the name of the func was "ldexp_doc").

Index: mathmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/mathmodule.c,v
retrieving revision 2.60
retrieving revision 2.61
diff -C2 -d -r2.60 -r2.61
*** mathmodule.c	2001/08/07 22:10:00	2.60
--- mathmodule.c	2001/09/04 23:17:42	2.61
***************
*** 159,163 ****
"tanh(x)\n\nReturn the hyperbolic tangent of x.")

-
static PyObject *
math_frexp(PyObject *self, PyObject *args)
--- 159,162 ----
***************
*** 177,186 ****

static char math_frexp_doc [] =
! "frexp(x)\n\
! \n\
! Return the mantissa and exponent of x, as pair (m, e).\n\
! m is a float and e is an int, such that x = m * 2.**e.\n\
! If x is 0, m and e are both 0.  Else 0.5 <= abs(m) < 1.0.";
!

static PyObject *
--- 176,184 ----

static char math_frexp_doc [] =
! "frexp(x)\n"
! "\n"
! "Return the mantissa and exponent of x, as pair (m, e).\n"
! "m is a float and e is an int, such that x = m * 2.**e.\n"
! "If x is 0, m and e are both 0.  Else 0.5 <= abs(m) < 1.0.";

static PyObject *
***************
*** 203,210 ****

static char math_ldexp_doc [] =
! "ldexp_doc(x, i)\n\
! \n\
! Return x * (2**i).";
!

static PyObject *
--- 201,205 ----

static char math_ldexp_doc [] =
! "ldexp(x, i) -> x * (2**i)";

static PyObject *
***************
*** 232,240 ****

static char math_modf_doc [] =
! "modf(x)\n\
! \n\
! Return the fractional and integer parts of x. Both results carry the sign\n\
! of x.  The integer part is returned as a real.";
!

static PyMethodDef math_methods[] = {
--- 227,234 ----

static char math_modf_doc [] =
! "modf(x)\n"
! "\n"
! "Return the fractional and integer parts of x.  Both results carry the sign\n"
! "of x.  The integer part is returned as a real.";

static PyMethodDef math_methods[] = {
***************
*** 267,272 ****

static char module_doc [] =
! mathematical functions defined by the C standard.";

DL_EXPORT(void)
--- 261,266 ----

static char module_doc [] =