[Numpy-discussion] Warnings as exceptions?

Michael McNeil Forbes mforbes@physics.ubc...
Tue Nov 13 12:48:59 CST 2007


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...

Thanks.  Michael.



More information about the Numpy-discussion mailing list