[Python-checkins] CVS: python/dist/src/Doc/lib libzipfile.tex,1.8,1.8.6.1

Fred L. Drake fdrake@users.sourceforge.net
Wed, 09 May 2001 12:57:52 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv9217/Doc/lib

Modified Files:
      Tag: release21-maint
	libzipfile.tex 
Log Message:

Itamar Shtull-Trauring <python@itamarst.org>:
Updates zipfile.ZipFile docs to mention the fact that you can create a
ZipFile instance from an arbitrary file-like object.

This closes patch #418011.


Index: libzipfile.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libzipfile.tex,v
retrieving revision 1.8
retrieving revision 1.8.6.1
diff -C2 -r1.8 -r1.8.6.1
*** libzipfile.tex	2000/10/11 18:56:00	1.8
--- libzipfile.tex	2001/05/09 19:57:50	1.8.6.1
***************
*** 78,88 ****
  \subsection{ZipFile Objects \label{zipfile-objects}}
  
! \begin{classdesc}{ZipFile}{filename\optional{, mode\optional{, compression}}} 
!   Open a ZIP file named \var{filename}.  The \var{mode} parameter
    should be \code{'r'} to read an existing file, \code{'w'} to
    truncate and write a new file, or \code{'a'} to append to an
!   existing file.  For \var{mode} is \code{'a'} and \var{filename}
    refers to an existing ZIP file, then additional files are added to
!   it.  If \var{filename} does not refer to a ZIP file, then a new ZIP
    archive is appended to the file.  This is meant for adding a ZIP
    archive to another file, such as \file{python.exe}.  Using
--- 78,89 ----
  \subsection{ZipFile Objects \label{zipfile-objects}}
  
! \begin{classdesc}{ZipFile}{file\optional{, mode\optional{, compression}}} 
!   Open a ZIP file, where \var{file} can be either a path to a file
!   (i.e. a string) or a file-like object.  The \var{mode} parameter
    should be \code{'r'} to read an existing file, \code{'w'} to
    truncate and write a new file, or \code{'a'} to append to an
!   existing file.  For \var{mode} is \code{'a'} and \var{file}
    refers to an existing ZIP file, then additional files are added to
!   it.  If \var{file} does not refer to a ZIP file, then a new ZIP
    archive is appended to the file.  This is meant for adding a ZIP
    archive to another file, such as \file{python.exe}.  Using