[Numpy-tickets] [NumPy] #725: Comparing string arrays to scalar numbers returns a single boolean value instead of an array of booleans
NumPy
numpy-tickets@scipy....
Mon Apr 28 22:17:09 CDT 2008
#725: Comparing string arrays to scalar numbers returns a single boolean value
instead of an array of booleans
------------------------+---------------------------------------------------
Reporter: rkern | Owner: oliphant
Type: defect | Status: new
Priority: normal | Milestone: 1.1.0
Component: numpy.core | Version: none
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by charris):
You are asking for something like the equal ufunc, but the ufuncs need a
common type to compare, which is lacking between strings and numbers. The
only easy way out that I can see is to fall back and compare types, which
doesn't really need a ufunc, and generate an array of false. But it may
not always be desireable to do that for arrays. What do you think?
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/725#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list