Runtime Data Attributes

method.__doc__

Documentation forwarded from the underlying function of a Python bound method. Edit the function rather than the transient bound method.

Formal Syntax & Structure

python syntaxpython
method.__doc__

Return Value

str | None

Usual metadata value under ordinary construction; manually assigned metadata can differ. See description.

Working Example

Example Snippetpython
class C:    def f(self):        "Method help."        return 7m = C().fprint(m.__doc__)
Python Reference