summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library
diff options
context:
space:
mode:
authorDaniel Hillier <daniel.hillier@gmail.com>2019-11-30 08:30:47 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2019-11-30 08:30:47 (GMT)
commit8d62df60d8733d0fa9aee14ef746d0009a7a9726 (patch)
tree313fcbd540496aaf81650be5a189cbc8abeee63e /Misc/NEWS.d/next/Library
parent1df65f7c6c00dfae9286c7a58e1b3803e3af33e5 (diff)
downloadcpython-8d62df60d8733d0fa9aee14ef746d0009a7a9726.zip
cpython-8d62df60d8733d0fa9aee14ef746d0009a7a9726.tar.gz
cpython-8d62df60d8733d0fa9aee14ef746d0009a7a9726.tar.bz2
bpo-37523: Raise ValueError for I/O operations on a closed zipfile.ZipExtFile. (GH-14658)
Raises ValueError when calling the following on a closed zipfile.ZipExtFile: read, readable, seek, seekable, tell.
Diffstat (limited to 'Misc/NEWS.d/next/Library')
-rw-r--r--Misc/NEWS.d/next/Library/2019-10-02-02-55-37.bpo-37523.GguwJ6.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-10-02-02-55-37.bpo-37523.GguwJ6.rst b/Misc/NEWS.d/next/Library/2019-10-02-02-55-37.bpo-37523.GguwJ6.rst
new file mode 100644
index 0000000..5711969
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-10-02-02-55-37.bpo-37523.GguwJ6.rst
@@ -0,0 +1 @@
+Change :class:`zipfile.ZipExtFile` to raise ``ValueError`` when trying to access the underlying file object after it has been closed. This new behavior is consistent with how accessing closed files is handled in other parts of Python. \ No newline at end of file