bundles / IPython 9.5.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: objectan 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