[Numpy-discussion] Release blockers for 1.4.0 ?

Pauli Virtanen pav@iki...
Tue Dec 8 09:57:09 CST 2009


ke, 2009-12-09 kello 00:21 +0900, David Cournapeau kirjoitti:
> On Wed, Dec 9, 2009 at 12:10 AM, Bruce Southey <bsouthey@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