I can confirm on a Dell PowerEdge 2950 ...

2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:58:24 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

  python-2.4.3-24.el5

  python-numeric-23.7-2.2.2

  ****

Python 2.4.3 (#1, Sep 17 2008, 16:07:08)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-41)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> print Numeric.__version__
23.7
>>> a = Numeric.array([x for x in xrange(20)])
>>> Numeric.reshape(a, (4,5))
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: total size of new array must be unchanged

  ****

Joe Kazura


On Apr 1, 2009, at 1:07 AM, Bob Arendt wrote:

Before I file a bugzilla or support request, I was hoping that
someone could confirm this bug I'm seeing in python-numeric with
on an x86_64 architecture (RHEL 5.3).

% rpm -q python python-numeric
python-2.4.3-24.el5
python-numeric-23.7-2.2.2
% python
Python 2.4.3 (#1, Sep 17 2008, 16:07:08)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-41)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> print Numeric.__version__
23.7
>>> a = Numeric.array([x for x in xrange(20)])
>>> Numeric.reshape(a, (4,5))
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
ValueError: total size of new array must be unchanged
>>>
%

It's trying to reshape a 20-element array to a 4x5.
There shouldn't be a ValueError.


A 32-bit RHEL5 operates properly (RHEL 5.2):

% rpm -q python python-numeric
python-2.4.3-21.el5
python-numeric-23.7-2.2.2
% python
Python 2.4.3 (#1, Jan 14 2008, 18:32:40)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Numeric
>>> print Numeric.__version__
23.7
>>> a = Numeric.array([x for x in xrange(20)])
>>> Numeric.reshape(a, (4,5))
array([[ 0,  1,  2,  3,  4],
      [ 5,  6,  7,  8,  9],
      [10, 11, 12, 13, 14],
      [15, 16, 17, 18, 19]])
>>>
%

This appears to operate properly in Fedora x86_64 using python- numeric-24.2.

Thanks in advance,
-Bob Arendt

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to