[issue5543] sys.last_type missing

2009-03-23 Thread Alexandru V. Mosoi

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



[issue2824] zipfile to handle duplicate files in archive

2009-06-17 Thread Alexandru V. Mosoi

Alexandru V. Mosoi  added the comment:

a similar problem appears when the zip file contains two files as in:
['_test/tree.pl', '_test/'].

for ZipFile.extractall() when _test/tree.pl is extracted _test/ is
created and the the extraction of _test/ fails because OSError: [Errno
17] File exists: '_test/'

--
nosy: +brtzsnr
versions: +Python 2.6 -Python 2.5

___
Python tracker 
<http://bugs.python.org/issue2824>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com