Function docstring as a local variable

rantingrick rantingrick at gmail.com
Sun Jul 10 13:44:30 EDT 2011


On Jul 10, 12:41 pm, Tim Johnson <t... at johnsons-web.com> wrote:
> It possible for a function to print it's own docstring?

def f():
   """docstring"""
   print "docstring"

any questions?



More information about the Python-list mailing list