1 2 3 4 5 6 7
def f(): """We have doc-strings :-)""" if f.__doc__ == None: print "There are no doc-strings! :-(" else: print f.__doc__