[Numpy-discussion] Assigning complex values to a real array
Sat Mar 7 04:18:42 CST 2009
On Sat, Mar 7, 2009 at 04:10, Stéfan van der Walt <firstname.lastname@example.org> wrote:
> 2009/3/7 Robert Kern <email@example.com>:
>> In : z = zeros(3, int)
>> In : z = 1.5
>> In : z
>> Out: array([0, 1, 0])
> Blind moment, sorry. So, what is your take -- should this kind of
> thing pass silently?
Downcasting data is a necessary operation sometimes. We explicitly
made a choice a long time ago to allow this.
"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
More information about the Numpy-discussion