This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brtzsnr
Recipients brtzsnr
Date 2009-03-23.10:01:45
SpamBayes Score 4.8157294e-06
Marked as misclassified No
Message-id <1237802508.05.0.8782027083.issue5543@psf.upfronthosting.co.za>
In-reply-to
Content
`sys.last_type' is missing and thus, traceback.print_last() is not working.

$ python
Python 2.6.1 (r261:67515, Dec  7 2008, 18:56:39) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import sys
>>> try: raise Exception('asdf')
... except: print sys.last_type
... 
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
AttributeError: 'module' object has no attribute 'last_type'

>>> import traceback
>>> try: raise Exception('asdf')
... except: traceback.print_last()
... 
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
AttributeError: 'module' object has no attribute 'last_type'
History
Date User Action Args
2009-03-23 10:01:48brtzsnrsetrecipients: + brtzsnr
2009-03-23 10:01:48brtzsnrsetmessageid: <1237802508.05.0.8782027083.issue5543@psf.upfronthosting.co.za>
2009-03-23 10:01:46brtzsnrlinkissue5543 messages
2009-03-23 10:01:45brtzsnrcreate