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

bundles / IPython 9.10.0 / IPython / core / oinspect / getsource

function

IPython.core.oinspect:getsource

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

Signature

def   getsource ( obj oname = '' )  →  Union[str, None]

Summary

Wrapper around inspect.getsource.

Extended Summary

This can be modified by other projects to provide customized source extraction.

Parameters

obj : object

an object whose source code we will attempt to extract

oname : str

(optional) a name under which the object is known

Returns

src : unicode or None

Aliases

  • IPython.core.oinspect.getsource

Referenced by