Name
close
Synopsis
z
.close( )
Closes archive file
z
. Make sure the close
method is called, or else an incomplete and unusable ZIP file might
be left on disk. Such mandatory finalization is generally best
performed with a try
/finally
statement, as covered in Chapter 6.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.