Check F2PY-generated doc strings

What happened to our hw3 subroutine?
F2PY generates doc strings that document the interface:
>>> import hw
>>> print hw.__doc__      # brief module doc string
Functions:
  hw1 = hw1(r1,r2)
  hw2(r1,r2)
  hw3(r1,r2,s)

>>> print hw.hw3.__doc__  # more detailed function doc string
hw3 - Function signature:
  hw3(r1,r2,s)
Required arguments:
  r1 : input float
  r2 : input float
  s : input float
We see that hw3 assumes s is input argument!
Remedy: adjust the interface

previousnexttable of contents