[NumPy-Tickets] [NumPy] #1930: np.left_shift and np.right_shift fail on np.uint64 scalar types
NumPy Trac
numpy-tickets@scipy....
Wed Aug 10 15:34:16 CDT 2011
#1930: np.left_shift and np.right_shift fail on np.uint64 scalar types
------------------------+---------------------------------------------------
Reporter: tlatorre | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone: Unscheduled
Component: numpy.core | Version: 1.6.0
Keywords: |
------------------------+---------------------------------------------------
{{{
>>> np.uint64(5) << 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ufunc 'left_shift' not supported for the input types, and the
inputs could not be safely coerced to any supported types according to the
casting rule 'safe'
>>> np.uint64(5) >> 3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ufunc 'right_shift' not supported for the input types, and the
inputs could not be safely coerced to any supported types according to the
casting rule 'safe'
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1930>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list