[Python-Dev] Traceback object has no __class__?

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.exc_info()[2]
>    print tb
>    print tb.__class__

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



More information about the Python-Dev mailing list