diff options
author | Christian Heimes <christian@cheimes.de> | 2008-04-18 23:13:07 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-04-18 23:13:07 +0000 |
commit | 1e01b92fde31eb5d322f7e8eb4858d5e555af992 (patch) | |
tree | 7d21b172202f692eefbfc73847c0c5e91ae4d392 /Objects/intobject.c | |
parent | 5ed78cddc7ad72dfa580bbc3a0ff5e63896ec42c (diff) | |
download | cpython-1e01b92fde31eb5d322f7e8eb4858d5e555af992.tar.gz |
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
Diffstat (limited to 'Objects/intobject.c')
-rw-r--r-- | Objects/intobject.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c index e3139542e9..eacad9dfbf 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -1143,9 +1143,21 @@ int__format__(PyObject *self, PyObject *args) return NULL; } +#if 0 +static PyObject * +int_is_finite(PyObject *v) +{ + Py_RETURN_TRUE; +} +#endif + static PyMethodDef int_methods[] = { {"conjugate", (PyCFunction)int_int, METH_NOARGS, "Returns self, the complex conjugate of any int."}, +#if 0 + {"is_finite", (PyCFunction)int_is_finite, METH_NOARGS, + "Returns always True."}, +#endif {"__trunc__", (PyCFunction)int_int, METH_NOARGS, "Truncating an Integral returns itself."}, {"__getnewargs__", (PyCFunction)int_getnewargs, METH_NOARGS}, |