[Python-checkins] CVS: python/dist/src/Doc/lib libanydbm.tex,1.19,1.20

Fred L. Drake fdrake@users.sourceforge.net
Fri, 07 Dec 2001 13:56:16 -0800


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

Modified Files:
	libanydbm.tex 
Log Message:
Revise description of dumbdbm.open() to reflect that the flag argument is
ignored and that mode was ignored before Python 2.2.
This closes SF bug #490098.


Index: libanydbm.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libanydbm.tex,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** libanydbm.tex	2001/07/23 19:22:42	1.19
--- libanydbm.tex	2001/12/07 21:56:13	1.20
***************
*** 72,86 ****
  
  \begin{funcdesc}{open}{filename\optional{, flag\optional{, mode}}}
! Open the database file \var{filename} and return a corresponding object.
! The optional \var{flag} argument can be
! \code{'r'} to open an existing database for reading only,
! \code{'w'} to open an existing database for reading and writing,
! \code{'c'} to create the database if it doesn't exist, or
! \code{'n'}, which will always create a new empty database.  If not
! specified, the default value is \code{'r'}.
  
  The optional \var{mode} argument is the \UNIX{} mode of the file, used
  only when the database has to be created.  It defaults to octal
  \code{0666} (and will be modified by the prevailing umask).
  \end{funcdesc}
  
--- 72,86 ----
  
  \begin{funcdesc}{open}{filename\optional{, flag\optional{, mode}}}
! Open the database file \var{filename} and return a corresponding
! object.  The \var{flag} argument, used to control how the database is
! opened in the other DBM implementations, is ignored in
! \module{dumbdbm}; the database is always opened for update, and will
! be created if it does not exist.
  
  The optional \var{mode} argument is the \UNIX{} mode of the file, used
  only when the database has to be created.  It defaults to octal
  \code{0666} (and will be modified by the prevailing umask).
+ \versionchanged[The \var{mode} argument was ignored in earlier
+                 versions]{2.2}
  \end{funcdesc}