This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients Jake Lever, iritkatriel
Date 2020-09-11.11:46:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599824805.84.0.153816867131.issue31686@roundup.psfhosted.org>
In-reply-to
Content
The documentation states that: 

Calling a GzipFile object’s close() method does not close fileobj, since you might wish to append more material after the compressed data. This also allows you to pass an io.BytesIO object opened for writing as fileobj, and retrieve the resulting memory buffer using the io.BytesIO object’s getvalue() method.

(https://docs.python.org/3.8/library/gzip.html)


It's reasonable that, since you opened the file, you would also be responsible for closing it.
History
Date User Action Args
2020-09-11 11:46:45iritkatrielsetrecipients: + iritkatriel, Jake Lever
2020-09-11 11:46:45iritkatrielsetmessageid: <1599824805.84.0.153816867131.issue31686@roundup.psfhosted.org>
2020-09-11 11:46:45iritkatriellinkissue31686 messages
2020-09-11 11:46:45iritkatrielcreate