@@ -158,7 +158,6 @@ FUNC1(tan, tan,
158
158
FUNC1 (tanh , tanh ,
159
159
"tanh(x)\n\nReturn the hyperbolic tangent of x." )
160
160
161
-
162
161
static PyObject *
163
162
math_frexp (PyObject * self , PyObject * args )
164
163
{
@@ -176,12 +175,11 @@ math_frexp(PyObject *self, PyObject *args)
176
175
}
177
176
178
177
static char math_frexp_doc [] =
179
- "frexp(x)\n\
180
- \n\
181
- Return the mantissa and exponent of x, as pair (m, e).\n\
182
- m is a float and e is an int, such that x = m * 2.**e.\n\
183
- If x is 0, m and e are both 0. Else 0.5 <= abs(m) < 1.0." ;
184
-
178
+ "frexp(x)\n"
179
+ "\n"
180
+ "Return the mantissa and exponent of x, as pair (m, e).\n"
181
+ "m is a float and e is an int, such that x = m * 2.**e.\n"
182
+ "If x is 0, m and e are both 0. Else 0.5 <= abs(m) < 1.0." ;
185
183
186
184
static PyObject *
187
185
math_ldexp (PyObject * self , PyObject * args )
@@ -202,10 +200,7 @@ math_ldexp(PyObject *self, PyObject *args)
202
200
}
203
201
204
202
static char math_ldexp_doc [] =
205
- "ldexp_doc(x, i)\n\
206
- \n\
207
- Return x * (2**i)." ;
208
-
203
+ "ldexp(x, i) -> x * (2**i)" ;
209
204
210
205
static PyObject *
211
206
math_modf (PyObject * self , PyObject * args )
@@ -231,11 +226,10 @@ math_modf(PyObject *self, PyObject *args)
231
226
}
232
227
233
228
static char math_modf_doc [] =
234
- "modf(x)\n\
235
- \n\
236
- Return the fractional and integer parts of x. Both results carry the sign\n\
237
- of x. The integer part is returned as a real." ;
238
-
229
+ "modf(x)\n"
230
+ "\n"
231
+ "Return the fractional and integer parts of x. Both results carry the sign\n"
232
+ "of x. The integer part is returned as a real." ;
239
233
240
234
static PyMethodDef math_methods [] = {
241
235
{"acos" , math_acos , METH_VARARGS , math_acos_doc },
@@ -266,8 +260,8 @@ static PyMethodDef math_methods[] = {
266
260
267
261
268
262
static char module_doc [] =
269
- "This module is always available. It provides access to the\n\
270
- mathematical functions defined by the C standard." ;
263
+ "This module is always available. It provides access to the\n"
264
+ " mathematical functions defined by the C standard." ;
271
265
272
266
DL_EXPORT (void )
273
267
initmath (void )
0 commit comments