José Luis Esteban

Results 4 comments of José Luis Esteban

Another confusing case, dealing with very large integers, which require using object arrays: >>> a = np.array([1, -2], dtype=object) >>> b = np.array([-5, 3], dtype=object) >>> np.copysign(a, b) Traceback (most...

For example, when converting floating point values to integers, an alternative to checking `isfinite()` would be to catch the exception raised by `int(nan)` or `int(inf)`, but _int(inf) does not raise...

> I don't think that there is any infinite loop. It just sometimes is slow. My bad. This example is one in a few thousand similar test cases, and I...