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 / 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 : int

The line number where the object definition starts.

Aliases

  • IPython.core.oinspect.find_source_lines