[Numpy-tickets] [NumPy] #463: hex(), oct() fails on int64 array
NumPy
numpy-tickets@scipy....
Sun Apr 1 16:24:15 CDT 2007
#463: hex(), oct() fails on int64 array
----------------------------+-----------------------------------------------
Reporter: gregsmithto | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.numarray | Version: 1.0.1
Severity: normal | Resolution:
Keywords: hex oct int64 |
----------------------------+-----------------------------------------------
Comment (by charris):
It's the indexing that causes problems:
{{{
In [26]: a = array([1<<35])
In [27]: a[0]
Out[27]: 34359738368
In [28]: hex(a)
Out[28]: '0x800000000L'
In [29]: hex(a[0])
Out[29]: '0x0'
In [30]: 2**35
Out[30]: 34359738368L
}}}
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/463#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