[Numpy-discussion] Broadcasting shape mismatch exception

Charles R Harris charlesr.harris at gmail.com
Mon Jul 4 09:43:48 EDT 2011


On Mon, Jul 4, 2011 at 7:38 AM, Davide <davide.lasagna at polito.it> wrote:

> Hi,
>
> The exception which is currently, (v1.6), raised when two non
> broadcastable arrays are summed is a ValueError exception. Wouldn't it
> be better to create a specific exception class, e.g. BroadcastError, to
> be more specific and give better control in exception catching?
>
>
Sounds like a good idea. Open a ticket.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110704/1e5f612d/attachment.html>


More information about the NumPy-Discussion mailing list