Yves Frederix wrote: > Hi, > > I am doing a simple function callback from fortran to python for which > the actual function call in fortran has repeated arguments. > > ! callback_error.f90: > subroutine testfun(x) > double precision, intent(in) :: x > double precision :: y > !f2py intent(callback) foo > !f2py double precision :: arg1 > !f2py double precision :: arg2 > !f2py double precision :: y > !f2py external y = foo(arg1, arg2) > external foo > y = foo(x, x) ! <-- this causes problems > print *, 'y:', y > end subroutine testfun
.. > Is this expected behavior? No. The bug is now fixed in numpy svn (rev 7712). Thanks for pointing out this corner case. Pearu _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
