Commit cbae620
committed
gh-51067: Document reliable space reclamation in ZipFile.repack()
Clarify that passing removed= reclaims a member's space regardless of
how its local file entry was written, while the scan used when removed
is omitted may leave entries in place (e.g. unsigned data descriptors
under the default strict_descriptor=True). Adjust the remove() note so
it no longer implies a bare repack() always removes the data, and add a
short remove-then-repack(removed) example.1 parent 9376c2d commit cbae620
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
574 | 576 | | |
575 | 577 | | |
576 | 578 | | |
| |||
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
590 | 603 | | |
591 | 604 | | |
592 | 605 | | |
| |||
0 commit comments