[NumPy-Tickets] [NumPy] #851: binary_repr bug for some input types
NumPy Trac
numpy-tickets@scipy....
Wed Nov 3 19:20:16 CDT 2010
#851: binary_repr bug for some input types
------------------------+---------------------------------------------------
Reporter: rgommers | Owner: cdavid
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.core | Version: 1.0.4
Keywords: |
------------------------+---------------------------------------------------
Comment(by rgommers):
Looks like this got fixed somewhere on the way. With 1.5.1rc1 on OS X:
{{{
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
...
In [28]: np.binary_repr(255)
Out[28]: '11111111'
In [29]: np.binary_repr(np.uint16(255))
Out[29]: '11111111'
In [30]: np.binary_repr(np.uint32(255))
Out[30]: '11111111'
}}}
And on Windows:
{{{
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit
(Intel)] on win32
...
>>> np.binary_repr(255)
'11111111'
>>> np.binary_repr(np.uint32(255))
'11111111'
>>> np.binary_repr(np.uint16(255))
'11111111'
}}}
The original report was on Linux though. If someone can confirm then this
ticket can be closed.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/851#comment:5>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list