[Python-checkins] CVS: python/dist/src/Doc/lib libbsddb.tex,1.5,1.6

Fred L. Drake python-dev@python.org
Thu, 04 Jan 2001 22:44:21 -0800


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

Modified Files:
	libbsddb.tex 
Log Message:

Update explanation of the set_location() method to indicate that in
BTree databases, the key need not be in the database.  Also, tell about
the exception if the key is not in the DB for other DB types.

This closes SF bug #127377.


Index: libbsddb.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libbsddb.tex,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** libbsddb.tex	2000/09/15 15:19:35	1.5
--- libbsddb.tex	2001/01/05 06:44:19	1.6
***************
*** 104,108 ****
  
  \begin{methoddesc}{set_location}{key}
! Set the cursor to the item indicated by the key and return it.
  \end{methoddesc}
  
--- 104,114 ----
  
  \begin{methoddesc}{set_location}{key}
! Set the cursor to the item indicated by \var{key} and return a tuple
! containing the key and its value.  For binary tree databases (opened
! using \function{btopen()}), if \var{key} does not actually exist in
! the database, the cursor will point to the next item in sorted order
! and return that key and value.  For other databases,
! \exception{KeyError} will be raised if \var{key} is not found in the
! database.
  \end{methoddesc}