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

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

any questions?

Try:

def f():
     ds= """docstring"""
     print ds
>

Colin W.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to