New submission from Marin M <pfo...@gmail.com>:

BZ2File doesn't have attribute name, unlike GzipFile which has it. Trying to 
access that attribute results in error.

PR is ready with code changes and tests which mimics what is already available 
for GzipFile (e.g. we do not take name from BytesIO() objects because they do 
not have it).
A similar PR is ready for LZMAFile as well (a different enhancement).

----------
components: Library (Lib)
messages: 416690
nosy: ellaellela
priority: normal
severity: normal
status: open
title: adding name to BZ2File
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue47217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to