[SciPy-user] [f2py] hide ?

fred fredmfp@gmail....
Wed Apr 25 17:02:44 CDT 2007


Hi,

I read the PerfomancePython doc, and specially, the example using f2py.

I try to getting work my own example but I can't :-(

Here the short fortran code:

      subroutine essai(n)
     
cf2py integer intent(hide) :: n
     
      integer :: n
     
      print *, 'n = ', n
     
      end subroutine

After compiling it, I try this:

Python 2.4.4 (#2, Apr  5 2007, 20:11:18)
Type "copyright", "credits" or "license" for more information.

IPython 0.7.2 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
%magic  -> Information about IPython's 'magic' % functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: n=13

In [2]: import essai; essai.essai()
 n =  0

In [3]:

What am I doing wrong ?

I read & re-read the "Using f2py" section, I don't understand.

Thanks in advance.

Cheers,

-- 
http://scipy.org/FredericPetit



More information about the SciPy-user mailing list