bundles / IPython 9.3.0 / IPython / core / oinspect / find_source_lines
function
IPython.core.oinspect:find_source_lines
source: /IPython/core/oinspect.py :352
Signature
def find_source_lines ( obj ) Summary
Find the line number in a file where an object was defined.
Extended Summary
This is essentially a robust wrapper around inspect.getsourcelines.
Returns None if no file can be found.
Parameters
obj: any Python object
Returns
lineno: intThe line number where the object definition starts.
Aliases
-
IPython.core.oinspect.find_source_lines