[NumPy-Tickets] [NumPy] #1001: dype comparison with other types raise a TypeError
NumPy Trac
numpy-tickets@scipy....
Wed Mar 23 20:25:02 CDT 2011
#1001: dype comparison with other types raise a TypeError
-------------------------+--------------------------------------------------
Reporter: ashleywalsh | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.core | Version: devel
Keywords: |
-------------------------+--------------------------------------------------
Changes (by mwiebe):
* milestone: 1.5.1 => Unscheduled
Comment:
This is because dtype comparison coerces the other value to a dtype. This
behavior actually violates the requirements of the hashing protocol, and
should be changed at some point to allow dtypes to be used in dictionaries
without the potential for bad behavior.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1001#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list