QuestionQ14

VerifiedAdvanced Object-Oriented Programming

Which of these statements about the __traceback__ attribute are true?

Choose two
Explanation

Every Python exception object inherits the __traceback__ attribute from BaseException. The attribute holds a traceback object, which can be passed to traceback.format_tb() to produce formatted traceback lines.

Community Discussion

No comments yet. Be the first to start the discussion!