## Fix Python – How to document a method with parameter(s)?

How to document methods with parameters using Python’s documentation strings?

EDIT:

PEP 257 gives this example:

def complex(real=0.0, imag=0.0):

“””Form a complex number.

Keyword arguments:

real — the real part (default 0.0)

imag — the imaginary part (default 0.0)

“””

if imag == 0.0 and real == 0.0: return complex_zero

….