From: EI <ge...@gm...> - 2006-06-27 19:20:09
|
Hi, I'm running python 2.4 on a 64bit linux and get strange results: (int(9))**2 is equal to 81, as it should, but (int64(9))**2 is equal to 0 Is it a bug or a feature? Eugene |
From: Travis O. <oli...@ie...> - 2006-06-27 19:38:36
|
EI wrote: > Hi, > > I'm running python 2.4 on a 64bit linux and get strange results: > (int(9))**2 is equal to 81, as it should, but > (int64(9))**2 is equal to 0 Thanks for the bug-report. Please provide the version of NumPy you are using so we can track it down, or suggest an upgrade. -Travis |
From: EI <ge...@gm...> - 2006-06-27 20:26:41
|
numpy.__version__ says 0.9.8. Python 2.4.2, GCC 4.1, OpenSuSE 10.1 (x86_64). Thanks Travis, Eugene On 6/27/06, Travis Oliphant <oli...@ie...> wrote: > > EI wrote: > > Hi, > > > > I'm running python 2.4 on a 64bit linux and get strange results: > > (int(9))**2 is equal to 81, as it should, but > > (int64(9))**2 is equal to 0 > > Thanks for the bug-report. Please provide the version of NumPy you are > using so we can track it down, or suggest an upgrade. > > -Travis > > |
From: Andrew S. <str...@as...> - 2006-06-27 22:37:46
|
An SVN checkout from a week or two ago looks OK on my amd64 machine: astraw@hdmg:~$ python Python 2.4.3 (#2, Apr 27 2006, 14:43:32) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.__version__ '0.9.9.2631' >>> numpy.int64(9)**2 81 >>> EI wrote: > numpy.__version__ says 0.9.8. > > Python 2.4.2, GCC 4.1, OpenSuSE 10.1 (x86_64). > > Thanks Travis, > Eugene > > On 6/27/06, *Travis Oliphant* < oli...@ie... > <mailto:oli...@ie...>> wrote: > > EI wrote: > > Hi, > > > > I'm running python 2.4 on a 64bit linux and get strange results: > > (int(9))**2 is equal to 81, as it should, but > > (int64(9))**2 is equal to 0 > > Thanks for the bug-report. Please provide the version of NumPy > you are > using so we can track it down, or suggest an upgrade. > > -Travis > > >------------------------------------------------------------------------ > >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >------------------------------------------------------------------------ > >_______________________________________________ >Numpy-discussion mailing list >Num...@li... >https://lists.sourceforge.net/lists/listinfo/numpy-discussion > > |
From: Vincent S. <sc...@sa...> - 2006-06-28 14:04:42
|
Andrew Straw wrote: > An SVN checkout from a week or two ago looks OK on my amd64 machine: > > astraw@hdmg:~$ python > Python 2.4.3 (#2, Apr 27 2006, 14:43:32) > [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import numpy > >>> numpy.__version__ > '0.9.9.2631' > >>> numpy.int64(9)**2 > 81 > >>> > Confirmed to be fixed on my gentoo amd64 machine, numpy svn of couple of days ago: >>> numpy.int64(9)**2 81 >>> numpy.__version__ '0.9.9.2665' Cheers, Vincent. > > EI wrote: > > >> numpy.__version__ says 0.9.8. >> >> Python 2.4.2, GCC 4.1, OpenSuSE 10.1 (x86_64). >> >> Thanks Travis, >> Eugene >> >> On 6/27/06, *Travis Oliphant* < oli...@ie... >> <mailto:oli...@ie...>> wrote: >> >> EI wrote: >> > Hi, >> > >> > I'm running python 2.4 on a 64bit linux and get strange results: >> > (int(9))**2 is equal to 81, as it should, but >> > (int64(9))**2 is equal to 0 >> >> Thanks for the bug-report. Please provide the version of NumPy >> you are >> using so we can track it down, or suggest an upgrade. >> >> -Travis >> >> >> ------------------------------------------------------------------------ >> >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Numpy-discussion mailing list >> Num...@li... >> https://lists.sourceforge.net/lists/listinfo/numpy-discussion >> >> >> > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > |