diff options
author | Christian Heimes <christian@cheimes.de> | 2008-04-18 23:13:07 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-04-18 23:13:07 (GMT) |
commit | 6f34109384f3a78d5f4f8bdd418a89caca19631e (patch) | |
tree | f5b446eb4cd2993b6be5a373148530976ce39f4b /Objects/longobject.c | |
parent | 858a77099e094ce4ef57778d38230ec36db2e805 (diff) | |
download | cpython-6f34109384f3a78d5f4f8bdd418a89caca19631e.zip cpython-6f34109384f3a78d5f4f8bdd418a89caca19631e.tar.gz cpython-6f34109384f3a78d5f4f8bdd418a89caca19631e.tar.bz2 |
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/longobject.c')
-rw-r--r-- | Objects/longobject.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 4ab8f1e..7fc4576 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -3441,9 +3441,21 @@ long__format__(PyObject *self, PyObject *args) return NULL; } +#if 0 +static PyObject * +long_is_finite(PyObject *v) +{ + Py_RETURN_TRUE; +} +#endif + static PyMethodDef long_methods[] = { {"conjugate", (PyCFunction)long_long, METH_NOARGS, "Returns self, the complex conjugate of any long."}, +#if 0 + {"is_finite", (PyCFunction)long_is_finite, METH_NOARGS, + "Returns always True."}, +#endif {"__trunc__", (PyCFunction)long_long, METH_NOARGS, "Truncating an Integral returns itself."}, {"__getnewargs__", (PyCFunction)long_getnewargs, METH_NOARGS}, |