summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-12-03 07:14:36 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-12-03 07:14:36 (GMT)
commitf4adbae92738b96915664461fcc3be17e19eb674 (patch)
tree87c096e873b499206bd05fa7c92a6f3fa0cc0496 /Doc
parent4954f9fcab59e38f2229998b3276567d4bf92b53 (diff)
parent1ad088f3ea14f4b598040e1d266e2567aa260dea (diff)
downloadcpython-f4adbae92738b96915664461fcc3be17e19eb674.zip
cpython-f4adbae92738b96915664461fcc3be17e19eb674.tar.gz
cpython-f4adbae92738b96915664461fcc3be17e19eb674.tar.bz2
Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even if the ZipFile was created by passing in a file-like object as the first argument to the constructor.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/zipfile.rst10
1 files changed, 2 insertions, 8 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 1d23a7c..465d786 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -219,14 +219,8 @@ ZipFile Objects
.. note::
- If the ZipFile was created by passing in a file-like object as the first
- argument to the constructor, then the object returned by :meth:`.open` shares the
- ZipFile's file pointer. Under these circumstances, the object returned by
- :meth:`.open` should not be used after any additional operations are performed
- on the ZipFile object. If the ZipFile was created by passing in a string (the
- filename) as the first argument to the constructor, then :meth:`.open` will
- create a new file object that will be held by the ZipExtFile, allowing it to
- operate independently of the ZipFile.
+ Objects returned by :meth:`.open` can operate independently of the
+ ZipFile.
.. note::