lsst.pex.config
16.0-6-g0838257+1
|
Public Member Functions | |
def | __init__ (self, filename, lineno, function, content=None) |
def | content (self) |
def | fromFrame (cls, frame) |
def | __repr__ (self) |
def | format (self, full=False) |
Public Attributes | |
filename | |
lineno | |
function | |
A single element of the stack trace This differs slightly from the standard system mechanisms for getting a stack trace by the fact that it does not look up the source code until it is absolutely necessary, reducing the I/O. Parameters ---------- filename : `str` Name of file containing the code being executed. lineno : `int` Line number of file being executed. function : `str` Function name being executed. content : `str` or `None` The actual content being executed. If not provided, it will be loaded from the file.
Definition at line 69 of file callStack.py.
def lsst.pex.config.callStack.StackFrame.__init__ | ( | self, | |
filename, | |||
lineno, | |||
function, | |||
content = None |
|||
) |
Definition at line 90 of file callStack.py.
def lsst.pex.config.callStack.StackFrame.__repr__ | ( | self | ) |
Definition at line 131 of file callStack.py.
def lsst.pex.config.callStack.StackFrame.content | ( | self | ) |
Getter for content being executed Load from file on demand.
Definition at line 100 of file callStack.py.
def lsst.pex.config.callStack.StackFrame.format | ( | self, | |
full = False |
|||
) |
Format for printing Parameters ---------- full : `bool` Print full details, including content being executed? Returns ------- result : `str` Formatted string.
Definition at line 134 of file callStack.py.
def lsst.pex.config.callStack.StackFrame.fromFrame | ( | cls, | |
frame | |||
) |
Construct from a Frame object inspect.currentframe() provides a Frame object. This is a convenience constructor to interpret that Frame object. Parameters ---------- frame : `Frame` Frame object to interpret. Returns ------- output : `StackFrame` Constructed object.
Definition at line 110 of file callStack.py.
lsst.pex.config.callStack.StackFrame.filename |
Definition at line 94 of file callStack.py.
lsst.pex.config.callStack.StackFrame.function |
Definition at line 96 of file callStack.py.
lsst.pex.config.callStack.StackFrame.lineno |
Definition at line 95 of file callStack.py.