Re: Python 1.0.2 arraymodule.c and redirect.py

Steven D. Majewski (sdm7g@elvis.med.virginia.edu)
Fri, 6 May 1994 13:43:54 -0400

I'm trying to track down the problem of why arraymodule doesn't work
compiled with AIX xlc, but does with gcc.

compiled with gcc, I get:

>>> from array import array
>>> array( 'f' )
array('f')
>>> array( 'f', [1.0,2.0,3.0] )
array('f', [1.0, 2.0, 3.0])
>>>

while compiled with AIX xlc, I get:

>>> array( 'f' )
< object at 2006f508>
>>> array( 'f', [1.0,2.0] )
Illegal instruction(coredump)

also:
>>>a = array( 'i' )

assigns SOME sort of object to a, but:

type( a )

core dumps.

This wierd behavious makes me thing that it's not a compiler bug, but
maybe some sort of name conflict.

Any clues ?

- Clueless in Virginia,
- Steve Majewski <sdm7g@Virginia.EDU>