[Numpy-discussion] embedded arrays

Thomas Hrabe thrabe@burnham....
Fri Jun 6 17:10:25 CDT 2008

Hi all,

while writing a extension module in C++ for python & numpy, I find a strange error.

I can send and retrieve numpy arrays to and from my module.
But python stops if I do the following:

a = numpy.array([[1.1,2,3],[4,5,6]])
PM.put(a,'a')   //send a to the module
b = PM.get('a') //get a identical copy from the module
print b
array([[ 1.1,  2. ,  3. ],
       [ 4. ,  5. ,  6. ]])

Out[36]: <type 'numpy.ndarray'>

perfect, until
a == b

the interpreter does not continue from here... 
I can add values to to b, everything, but a == b simply crashes ...?

Does anybody have a clue for this problem?

Have a nice weekend,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080606/1b63de1d/attachment.html 

More information about the Numpy-discussion mailing list