[New-bugs-announce] [issue5543] sys.last_type missing
Alexandru V. Mosoi
report at bugs.python.org
Mon Mar 23 11:01:48 CET 2009
New submission from Alexandru V. Mosoi <brtzsnr at gmail.com>:
`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'
----------
components: Library (Lib)
messages: 84002
nosy: brtzsnr
severity: normal
status: open
title: sys.last_type missing
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5543>
_______________________________________
More information about the New-bugs-announce
mailing list