[Numpy-discussion] mixing -fno-exceptions with swig c++ wrappers to python

2009-09-05 Thread Rohit Garg
Hi, I am using swig to expose a c++ class to Python. I am wondering if it is safe to use the -fno-exceptions option while compiling the wrappers. I am also using the typemaps present in the numpy.i file that comes with numpy. Thanks, -- Rohit Garg http://rpg-314.blogspot.com/ Senior

[Numpy-discussion] object dtype questions

2009-09-05 Thread Mark Wendell
When I create an array with a dtype=object, and instance a custom python class to each array member, have I foregone any opportunity to call methods or get/set attributes on those instances with any of numpy's 'group' operations? In other words, it seems like once I've got a custom object as an

Re: [Numpy-discussion] fwrite() failure in PyArray_ToFile

2009-09-05 Thread David Cournapeau
On Sat, Sep 5, 2009 at 2:01 PM, Charles R Harrischarlesr.har...@gmail.com wrote: On Fri, Sep 4, 2009 at 10:29 PM, Sturla Molden stu...@molden.no wrote: Charles R Harris skrev: The size of long depends on the compiler as well as the operating system. On linux x86_64, IIRC, it is 64 bits,

Re: [Numpy-discussion] fwrite() failure in PyArray_ToFile

2009-09-05 Thread David Warde-Farley
On 4-Sep-09, at 11:59 PM, Charles R Harris wrote: The size of long depends on the compiler as well as the operating system. On linux x86_64, IIRC, it is 64 bits, on Windows64 I believe it is 32. Ints always seem to be 32 bits. But something funny is definitely going on. It shouldn't be