New submission from Alexandru V. Mosoi :
`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 "", line 4, in
AttributeError: 'module' object has no attribute 'last_type'
>>> import traceback
>>> try: raise Exception('asdf')
... except: traceback.print_last()
...
Traceback (most recent call last):
File "", line 4, in
AttributeError: 'module' object has no attribute 'last_type'
--
components: Library (Lib)
messages: 84002
nosy: brtzsnr
severity: normal
status: open
title: sys.last_type missing
versions: Python 2.6
___
Python tracker
<http://bugs.python.org/issue5543>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com