def get_linenos(obj):
try:<EOL><INDENT>lines, start = inspect.getsourcelines(obj)<EOL><DEDENT>except TypeError:<EOL><INDENT>return None, None<EOL><DEDENT>else:<EOL><INDENT>return start, start + len(lines) - <NUM_LIT:1><EOL><DEDENT>
Get an object’s line numbers