[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-18 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-18 Thread miss-islington
miss-islington added the comment: New changeset 97ce855ca8ce437070424b43f5b41158685ac140 by Miss Islington (bot) in branch '3.10': bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-18 Thread Inada Naoki
Inada Naoki added the comment: New changeset 0a4c82ddd34a3578684b45b76f49cd289a08740b by Inada Naoki in branch 'main': bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016) https://github.com/python/cpython/commit/0a4c82ddd34a3578684b45b76f49cd289a08740b

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27321 pull_request: https://github.com/python/cpython/pull/29050 ___ Python tracker

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-17 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +27290 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29016 ___ Python tracker ___

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-15 Thread Inada Naoki
Inada Naoki added the comment: >>> ll = [l for l in gzip.GzipFile(filename='data/UTF-8-test_for_gzip.txt.gz')] This is bad code pattern because you don't close the file explicitly. Actually, the error caused by the optimization thet iter(GzipFile) returns underlaying faster iterator that

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This might be related to below commit : commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e Author: Inada Naoki Date: Tue Apr 13 13:51:49 2021 +0900 bpo-43787: Add __iter__ to GzipFile, BZ2File, and LZMAFile (GH-25353) python -m gzip

[issue45475] gzip fails to read a gzipped file (ValueError: readline of closed file)

2021-10-14 Thread minstrelofc
New submission from minstrelofc : Attempting to iterate over an opened gzip file raises a ValueError: readline of closed file Behavior in Python 3.9.7: Python 3.9.7 (default, Oct 13 2021, 09:08:19) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.