You can modify the __doc__
attribute of the function at runtime:
>>> def what():
... """docstring"""
... what.__doc__ += " x"
... print what.__doc__
...
>>> what()
docstring x
>>> what()
docstring x x
>>> what()
docstring x x x
>>> what()
docstring x x x x