python-numeric len() broken for python2.5, fine fort python2.4

Bug #302512 reported by tru
2
Affects Status Importance Assigned to Milestone
Release Notes for Ubuntu
Invalid
Undecided
Unassigned
python-numeric (Ubuntu)
New
Undecided
Unassigned

Bug Description

tru@intrepid-ibex:~$ uname -a
Linux intrepid-ibex 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:06 UTC 2008 x86_64 GNU/Linux
tru@intrepid-ibex:~$ dpkg --get-selections|grep -i num
python-numarray install
python-numeric install
python-numeric-ext install
python-numpy install
python-numpy-ext install
tru@intrepid-ibex:~$ dpkg --get-selections|grep -i python2
python2.4 install
python2.4-minimal install
python2.5 install
python2.5-minimal install

tru@intrepid-ibex:~$ python2.5 check.py
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-ibex:~$ python2.4 check.py
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

Revision history for this message
tru (tru) wrote :
Revision history for this message
tru (tru) wrote :

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.])

Revision history for this message
Colin Watson (cjwatson) wrote :

This seems as if it should be filed on the package in question rather than on ubuntu-release-notes; moving.

Changed in ubuntu-release-notes:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.