Parse::StackTrace::Type::Python::Frame - A frame from a Python stack trace
This is an implementation of Parse::StackTrace::Frame.
Python frames always have a file and line specified.
file
line
Most frames also have a function. If they don't, the function will be an empty string.
function
Every frame should have code specified, though there's always a chance that we're parsing an incomplete traceback, in which case code will be undef.
code
undef
There is also an extra accessor for Python frames called error_location. If this trace is because of a SyntaxError, then this is an integer indicating what character (starting from 0) in the code Python thinks the syntax error starts at.
error_location
To install Parse::StackTrace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::StackTrace
CPAN shell
perl -MCPAN -e shell install Parse::StackTrace
For more information on module installation, please visit the detailed CPAN module installation guide.