[Tutor] Docstring

Sunil Tech sunil.techspk at gmail.com
Mon Jun 8 11:34:05 CEST 2015


Hi Team,

what is the standard way of using docstrings?
for example (Sphinx)
def test(x):
    """
    A dummy method
    Args:
        x (int): first argument
    Returns:
        "true or false"
    """

and if the method has no arguments?
how should be the docstring?


Thanks & Regards,
Sunil. G


More information about the Tutor mailing list