[NumPy-Tickets] [NumPy] #2038: numpy.core.arrayprint.IntegerFormatter uses wrong exception catching code
NumPy Trac
numpy-tickets@scipy....
Fri Feb 3 02:33:33 CST 2012
#2038: numpy.core.arrayprint.IntegerFormatter uses wrong exception catching code
--------------------+-------------------------------------------------------
Reporter: fijal | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: |
--------------------+-------------------------------------------------------
code goes like this:
except TypeError, NotImplementedError:
# if reduce(data) fails, this instance will not be called,
just
# instantiated in formatdict.
pass
except ValueError:
# this occurs when everything is NA
pass
should be:
except (TypeError, NotImplementedError):
...
instead
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2038>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list