[Python-Dev] Traceback object has no class? (original) (raw)

Terry Reedy tjreedy at udel.edu
Mon Apr 12 19:13:05 CEST 2010


On 4/11/2010 6:43 AM, Greg Ewing wrote:

import sys

try: raise ValueError except ValueError: tb = sys.excinfo()[2] print tb print tb.class

3.1.2

<traceback object at 0x00EFDC10> <class 'traceback'>



More information about the Python-Dev mailing list