[Numpy-discussion] Nasty bug using pre-initialized arrays

Chris Barker Chris.Barker at noaa.gov
Sat Jan 5 02:17:51 EST 2008


Scott Ransom wrote:
> I wasn't at all arguing that having complex data chopped and
> downcast into an int or float container was the right thing to do.

indeed, it is an clearly bad thing to do -- but a bug magnet? I'm not so 
sure, surely, anyone that had any idea at all what they were doing with 
complex numbers would notice it right away.

To the OP: Did you waste any time thinking this was working right? Or 
was your time spent figuring out why numpy wold do such a thing? which 
is wasted time none the less.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list