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

2009-09-07 Thread David Cournapeau
Rohit Garg wrote: > Yeah, that's what I meant. If my code does not use exceptions, then is > it safe to use -fno-exceptions? > You would have to look at g++ documentation - but if it is safe for your code, numpy should not make it "unsafe". I am not sure what not using exception means in C++, t

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

2009-09-07 Thread Bill Spotz
numpy.i is supposed to be C-compatible, so it does not generate any throw or catch statements, and utilizes standard python error handling. Using -fno-exceptions should be OK. On Sep 7, 2009, at 12:16 PM, Rohit Garg wrote: > On Sun, Sep 6, 2009 at 8:35 PM, David > Cournapeau wrote: >> Rohit

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

2009-09-07 Thread Rohit Garg
On Sun, Sep 6, 2009 at 8:35 PM, David Cournapeau wrote: > Rohit Garg wrote: >> 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 >> th

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

2009-09-06 Thread David Cournapeau
Rohit Garg wrote: > 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. > > It will mostly depend on the code y

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

2009-09-04 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 Undergrad