bundles / IPython 9.17.0 / IPython / core / oinspect / getsource
function
IPython.core.oinspect:getsource
Signature
def getsource(obj, oname = '') → str | NoneSummary
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