View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Max Kanat-Alexander > Parse-StackTrace > Parse::StackTrace::Type::Python::Frame



Annotate this POD

View/Report Bugs


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.

syntax highlighting: