[New-bugs-announce] [issue24258] BZ2File objects do not have name attribute
Jozef Sivek
report at bugs.python.org
Thu May 21 11:16:56 CEST 2015
New submission from Jozef Sivek:
Unlike GzipFile the BZ2File does not have defined name attribute. The reading of this attribute results in: "AttributeError: 'BZ2File' object has no attribute 'name'".
This is truly missing feature and wrong behaviour, compare:
https://hg.python.org/releasing/3.4.3/file/933c3041d548/Lib/gzip.py
and
https://hg.python.org/releasing/3.4.3/file/933c3041d548/Lib/bz2.py
In addition to that the BZ2File did have name attribute in python 2.7.* .
In attachment there is tar ball with example files, expected results in python 3 and results in python 2.
----------
components: Library (Lib)
files: bz2file.tar
messages: 243743
nosy: jojko.sivek
priority: normal
severity: normal
status: open
title: BZ2File objects do not have name attribute
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file39452/bz2file.tar
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24258>
_______________________________________
More information about the New-bugs-announce
mailing list