[Numpy-discussion] Assigning complex values to a real array
Thu Dec 10 13:34:18 CST 2009
to, 2009-12-10 kello 10:18 -0600, Robert Kern kirjoitti:
> On Thu, Dec 10, 2009 at 04:24, Pauli Virtanen <email@example.com> wrote:
> > Thu, 10 Dec 2009 09:54:32 +0100, Dag Sverre Seljebotn wrote:
> > [clip]
> >> At this point I want to remind us about Charles Harris' very workable
> >> proposal: Raise a warning. That should both keep backward compatability
> >> and prevent people from wasting days. (Hopefully, we can avoid wasting
> >> days discussing this issue too :-) ).
> > Yes. We can even make it a PendingDeprecationWarning, when we become
> > convinced that this feature should go away in entirety.
> PendingDeprecationWarnings are off by default, I think.
So it seems.
r7993 makes Numpy to raise a custom ComplexWarning when these things
occur. It's easy for the user to change that into an error or silence
More information about the NumPy-Discussion