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

Charles R Harris charlesr.harris at gmail.com
Tue Jun 2 23:30:08 EDT 2009

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

> On Tue, Jun 2, 2009 at 22:21, Charles R Harris
> <charlesr.harris at 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.python.org/pipermail/numpy-discussion/attachments/20090602/2c92f2a2/attachment.html>

More information about the NumPy-Discussion mailing list