python-numeric len() broken for python2.5, fine fort python2.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Release Notes for Ubuntu |
Invalid
|
Undecided
|
Unassigned | ||
python-numeric (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
tru@intrepid-
Linux intrepid-ibex 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux
tru@intrepid-
python-numarray install
python-numeric install
python-numeric-ext install
python-numpy install
python-numpy-ext install
tru@intrepid-
python2.4 install
python2.4-minimal install
python2.5 install
python2.5-minimal install
tru@intrepid-
Python 2.5
Numeric 24.2
numpy 1.1.1
Check slice...
Numeric broken <-----!!!! len(x1[2:])=0 instead of 8
numpy ok
Check atlas (dot 1000x1000)
Numeric 0.411 s
numpy 2.173 s
tru@intrepid-
Python 2.4
Numeric 24.2
numpy 1.1.1
Check slice...
Numeric ok
numpy ok
Check atlas (dot 1000x1000)
Numeric 0.420 s
numpy 0.438 s
see attached test case
summary is misleading, sorry: it should say slice not working...
tru@intrepid- ibex:~$ python
Python 2.5.2 (r252:60911, Oct 5 2008, 19:29:17)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> import time, sys
>>> import numpy
>>> x1 =Numeric.ones(10, Numeric.Float)
>>> x1[2:]
zeros((0,), 'd')
tru@intrepid- ibex:~$ python2.4
Python 2.4.5 (#2, Aug 1 2008, 02:22:02)
[GCC 4.3.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> import time, sys
>>> import numpy
>>> x1 =Numeric.ones(10, Numeric.Float)
>>> x1[2:]
array([ 1., 1., 1., 1., 1., 1., 1., 1.])