Skip to content

Commit 3dde04e

Browse files
committed
docs: clarify unspecified multiple entry removal, suggest ZipInfo
1 parent 5cbe51b commit 3dde04e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/zipfile.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,9 @@ ZipFile objects
555555
Removes a member entry from the archive's central directory.
556556
*zinfo_or_arcname* may be the full path of the member or a :class:`ZipInfo`
557557
instance. If multiple members share the same full path and the path is
558-
provided, only one of them is removed.
558+
given as a string, only one of them is removed and which one is unspecified;
559+
it should not be relied upon. Pass the specific :class:`ZipInfo` instance to
560+
remove a particular member.
559561

560562
The archive must be opened with mode ``'w'``, ``'x'`` or ``'a'``.
561563

0 commit comments

Comments
 (0)