[SciPy-user] numarray complex comparisons

Travis Oliphant oliphant at ee.byu.edu
Tue Dec 10 17:05:57 EST 2002


> I haven't commented because there are a lot of other things going on,
> and Perry already knows my opinion on the subject.  There are multiple
> generic code examples where this has bitten me, and I think I've even
> provided demos during these discussions.  The errors only popped up a
> year after the code was used in production because an end user passed in
> complex values.  It can be argued that not throwing an exception will
> result in even worse errors.  I simply disagree based on my experience.
>

I concur with Eric.

Let complex comparisons just assume the user meant the real part only
rather than throwing an error.

> Off the top of my head, allowing complex comparison and the default
> value for the 'axis' keyword will likely be different in SciPy.

Not to sound like Eric's parrot (we do disagree on some things :-)), but I
have to again agree.

Best,

Travis O.






More information about the SciPy-User mailing list