Files
edx-platform/numpy-1.6.2/numpy/f2py/docs/usersguide/compile_session.dat

12 lines
223 B
Plaintext

>>> import f2py2e
>>> fsource = '''
... subroutine foo
... print*, "Hello world!"
... end
... '''
>>> f2py2e.compile(fsource,modulename='hello',verbose=0)
0
>>> import hello
>>> hello.foo()
Hello world!