I'm not sure how a function can get a generic handle to itself, but if you're willing to hardcode the function name, then this technique works:
def test():
"""This is my doc string"""
print test.__doc__
test()
Outputs:
This is my doc string
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
