[Numpy-discussion] Warnings as exceptions?

Timothy Hochberg tim.hochberg at ieee.org
Tue Nov 13 14:02:42 EST 2007


On Nov 13, 2007 11:48 AM, Michael McNeil Forbes <mforbes at physics.ubc.ca>
wrote:

> On 13 Nov 2007, at 8:46 AM, Travis E. Oliphant wrote:
>
> > Michael McNeil Forbes wrote:
> >> Why are numpy warnings printed rather than issued using the standard
> >> warnings library? ... in util.py ...
> > The "warn" option explicitly allows you to use the warnings library.
> > There is already the "print" mode which is in fact the default.
> I see now that it works exactly like I expected.  I got confused by
> the default and then looked in util.py in the old *numarray* code by
> mistake...
>

Ooops. I should have known that. The docstring for seterr should be adjusted
since it does not list "print" as an option. I'll try to do it if no one
gets to it first.



>
> Thanks.  Michael.
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
.  __
.   |-\
.
.  tim.hochberg at ieee.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20071113/20805a7e/attachment.html>


More information about the NumPy-Discussion mailing list