QuestionQ14Verified/Advanced Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhich of these statements about the __traceback__ attribute are true?Choose twoAThe attribute is a special method delivered by the traceback module to retrieve a full list of strings describing the traceback.BThe attribute is owned only by the exception objects residing in an exception chain.CThe attribute is owned by every exception object.DThe attribute can be easily handled by the traceback.format_tb() method.Show AnswerAnswerExplanationEvery 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.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion