[issue47218] adding name to lzmafile
Change by Marin M : -- keywords: +patch pull_requests: +30374 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32312 ___ Python tracker <https://bugs.python.org/issue47218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue47218] adding name to lzmafile
New submission from Marin M : LZMAFile 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 BZ2File as well (a different enhancement). -- components: Library (Lib) messages: 416691 nosy: ellaellela priority: normal severity: normal status: open title: adding name to lzmafile type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue47218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue47217] adding name to BZ2File
Change by Marin M : -- keywords: +patch pull_requests: +30373 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32311 ___ Python tracker <https://bugs.python.org/issue47217> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue47217] adding name to BZ2File
New submission from Marin M : 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 <https://bugs.python.org/issue47217> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue47216] adding mtime option to gzip open()
Change by Marin M : -- keywords: +patch pull_requests: +30371 stage: -> patch review pull_request: https://github.com/python/cpython/pull/32310 ___ Python tracker <https://bugs.python.org/issue47216> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue47216] adding mtime option to gzip open()
New submission from Marin M : init of class GzipFile has mtime as an optional argument, but open() function does not. When using open(), mtime will always be set to the current time and so far there was no way of fixing it to a specific timestamp. In case two people would tar.gz the same file and take its sha, the shas would be different. With an option to fix the mtime, they could have a unique sha. PR containing code change and the tests is already ready. -- components: Library (Lib) messages: 416685 nosy: ellaellela priority: normal severity: normal status: open title: adding mtime option to gzip open() type: enhancement versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue47216> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com