Andrew Straw wrote: > Apologies if I've missed the discussion of this, but I was recently > surprised by the following behavior (in svn trunk 4673). The following > code runs without triggering the assertion. > > import numpy as np > print np.__version__ > a=np.int32(42) > b=np.array([],dtype=np.int32) > assert np.allclose(a,b) > > Is this expected behavior of numpy or is this a bug I should report?
Bug, I think. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion