[Numpy-discussion] Release blockers for 1.4.0 ?

Pauli Virtanen pav at iki.fi
Tue Dec 8 10:57:09 EST 2009


ke, 2009-12-09 kello 00:21 +0900, David Cournapeau kirjoitti:
> On Wed, Dec 9, 2009 at 12:10 AM, Bruce Southey <bsouthey at gmail.com> wrote:
> 
> >
> > I understand the reason for the masked arrays behavior but changing the
> > seterr default will be a problem until ma is changed. With Python 2.6 and
> > numpy '1.4.0.dev7750', the current default works but fails when changing the
> > seterr default.
> 
> The default was warn, and not raise. Raise as a default does not make
> much sense.

There are drawbacks with the all='print' default:

It prints to C stdio stderr, which is unsanitary. Perhaps it should
print to Python's sys.stderr instead?

Also, some code that worked OK before would now start to spit out extra
warnings, which is not so nice.

-- 
Pauli Virtanen





More information about the NumPy-Discussion mailing list