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.

Most frames also have a function. If they don't, the function will be an empty string.

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.

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.