[Numpy-discussion] how can one catch a multiarray.error

Charles R Harris charlesr.harris@gmail....
Tue Jun 2 22:30:08 CDT 2009

On Tue, Jun 2, 2009 at 9:22 PM, Robert Kern <robert.kern@gmail.com> wrote:

> On Tue, Jun 2, 2009 at 22:21, Charles R Harris
> <charlesr.harris@gmail.com> wrote:
> > OK. I left the strings exposed in the modules with a fixme notes. Do you
> > think they should be removed while we are at it?
> I think they should be replaced with the Exception classes that are
> being raised in their place.

Hmm, all the replacement exceptions are standard python exceptions and for
the most part already were in multiarray. How about replacing the strings
with PyExc_Exception. I think that should catch everything.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090602/2c92f2a2/attachment.html 

More information about the Numpy-discussion mailing list