Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#8 Numeric inplace operators cause a crash

closed-fixed
Armin Rigo
6
2002-08-26
2002-08-24
Sami Hangaslammi
No

Any inplace operator for Numeric arrays seems to crash
the Python interpreter on Windows platform.

Tested with:
* Numeric 21.0
* Python 2.1, 2.2 and 2.2.1
* psyco 0.4 and 0.41
* Windows XP and Windows 2000

minimal example:

import Numeric, psyco
def f():
a = Numeric.zeros((3,3))
a += 5
psyco.bind(f)
f() # crashes

However, doing inplace operations using function calls
instead of overloaded operators works:

import Numeric, psyco
def f():
a = Numeric.zeros((3,3))
Numeric.add(a,5,a)
psyco.bind(f)
f() # doesn't crash

Discussion

    • priority: 5 --> 6
    • assigned_to: nobody --> arigo
     
  • Armin Rigo
    Armin Rigo
    2002-08-26

    Logged In: YES
    user_id=4771

    Dummy bug. Fixed in CVS.

     
  • Armin Rigo
    Armin Rigo
    2002-08-26

    • status: open --> closed
     
  • Armin Rigo
    Armin Rigo
    2002-08-26

    • status: closed --> closed-fixed