[Python-bugs-list] [ python-Bugs-683883 ] Numeric Python >22 dimensions trouble

SourceForge.net noreply@sourceforge.net
Mon, 10 Feb 2003 04:08:46 -0800


Bugs item #683883, was opened at 2003-02-10 12:08
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=683883&group_id=5470

Category: Extension Modules
Group: 3rd Party
Status: Open
Resolution: None
Priority: 5
Submitted By: Jurjen N.E. Bos (jneb)
Assigned to: Nobody/Anonymous (nobody)
Summary: Numeric Python >22 dimensions trouble

Initial Comment:
Platform: Mac OS X
Python 2.2.2 (#138, Oct 25 2002, 23:10:42)  [CW CARBON GUSI2 THREADS GC]

Numeric Python is preinstalled here. My machine has plenty of RAM.
I did some research myself: I hope this helps figuring out where the bug is.

>>> from Numeric import zeroes
>>> size(zeros((1<<25,),'b')+0)
33554432
>>> size(zeros((2,)*25,'b'))
33554432
>>> size(zeros((2,)*21,'b')+0)
2097152
>>> size(zeros((2,)*22,'b')+0)
**BOOM**

The interpreter crashes after the last statement (not earlier). I assume this is not intended behaviour :-)
To make it more interesting:
>>> zeros((1,)*22,'b')+0
array([...]
>>> zeros((1,)*23,'b')+0
**BOOM**


- Jurjen

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=683883&group_id=5470