[issue47218] adding name to lzmafile

2022-04-04 Thread Marin M
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/issu

[issue47218] adding name to lzmafile

2022-04-04 Thread Marin M
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() ob

[issue47217] adding name to BZ2File

2022-04-04 Thread Marin M
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/issu

[issue47217] adding name to BZ2File

2022-04-04 Thread Marin M
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() ob

[issue47216] adding mtime option to gzip open()

2022-04-04 Thread Marin M
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/issu

[issue47216] adding mtime option to gzip open()

2022-04-04 Thread Marin M
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