On 7/29/2015 8:45 AM, David Aldrich wrote:
Hi

If I have a script called main.py and document a function in it:

def get_value(x):
     """
     Some text ...
     :param x:     Some value
     :returns:      Something useful
     """

What is the most basic way of showing those docstrings at the Python prompt?

Are you asking about help?  as in:

>>> help(get_value)

Emile

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to