[Numpy-discussion] error handling with f2py?

Sturla Molden sturla at molden.no
Thu Jan 15 11:17:49 EST 2009


Is it possible to make f2py raise an exception if a fortran routine 
signals an error?

If I e.g. have

     subroutine foobar(a, ierr)

Can I get an exception automatically raised if ierr != 0?


Sturla Molden




More information about the NumPy-Discussion mailing list