You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / core / oinspect / getdoc

function

IPython.core.oinspect:getdoc

source: /IPython/core/oinspect.py :211

Signature

def   getdoc ( obj )  →  Union[str, None]

Summary

Stable wrapper around inspect.getdoc.

Extended Summary

This can't crash because of attribute problems.

It also attempts to call a getdoc() method on the given object. This allows objects which provide their docstrings via non-standard mechanisms (like Pyro proxies) to still be inspected by ipython's ? system.

Aliases

  • IPython.core.oinspect.getdoc