[Python-checkins] CVS: python/dist/src/Doc/lib libfileinput.tex,1.5,1.6
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 08 May 2001 20:24:57 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv24927/lib
Modified Files:
libfileinput.tex
Log Message:
Note that when inplace=1 existing backup files will be removed silently.
Closes SF bug #420230.
Index: libfileinput.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfileinput.tex,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** libfileinput.tex 2000/04/03 20:13:53 1.5
--- libfileinput.tex 2001/05/09 03:24:55 1.6
***************
*** 48,52 ****
Create an instance of the \class{FileInput} class. The instance
will be used as global state for the functions of this module, and
! is also returned to use during iteration.
\end{funcdesc}
--- 48,54 ----
Create an instance of the \class{FileInput} class. The instance
will be used as global state for the functions of this module, and
! is also returned to use during iteration. The parameters to this
! function will be passed along to the constructor of the
! \class{FileInput} class.
\end{funcdesc}
***************
*** 119,123 ****
\code{\var{inplace}=1} is passed to \function{input()} or to the
\class{FileInput} constructor, the file is moved to a backup file and
! standard output is directed to the input file.
This makes it possible to write a filter that rewrites its input file
in place. If the keyword argument \code{\var{backup}='.<some
--- 121,126 ----
\code{\var{inplace}=1} is passed to \function{input()} or to the
\class{FileInput} constructor, the file is moved to a backup file and
! standard output is directed to the input file (if a file of the same
! name as the backup file already exists, it will be replaced silently).
This makes it possible to write a filter that rewrites its input file
in place. If the keyword argument \code{\var{backup}='.<some