[NumPy-Tickets] [NumPy] #1641: Strange behavior of ldexp on Python2.5 + Wine
NumPy Trac
numpy-tickets@scipy....
Tue Oct 19 08:21:34 CDT 2010
#1641: Strange behavior of ldexp on Python2.5 + Wine
------------------------+---------------------------------------------------
Reporter: pv | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.5.1
Component: numpy.core | Version: 1.5.0
Keywords: |
------------------------+---------------------------------------------------
On Python 2.5 + MinGW + Wine (and probably on a real Windows, too):
{{{
>>> import numpy as np
>>> np.iinfo('l').max
2147483647
>>> np.ldexp(2, 2147483647)
0.0
>>> np.ldexp(2, 2147483646)
0.0
>>> np.ldexp(2, 2147483645)
Warning: overflow encountered in ldexp
inf
}}}
On Python 2.6 the above works correctly.
This occurs also on commit:d24db3430a and is therefore independent of
#1633.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1641>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list