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

Fred L. Drake fdrake@users.sourceforge.net
Sun, 28 Jan 2001 09:23:07 -0800


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

Modified Files:
	libnew.tex 
Log Message:

Adjust documentation for new.instance() to reflect that the second
parameter may be omitted or None.


Index: libnew.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libnew.tex,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** libnew.tex	2000/12/01 15:25:23	1.7
--- libnew.tex	2001/01/28 17:23:05	1.8
***************
*** 15,22 ****
  The \module{new} module defines the following functions:
  
! \begin{funcdesc}{instance}{class, dict}
  This function creates an instance of \var{class} with dictionary
! \var{dict} without calling the \method{__init__()} constructor. Note that
! there are no guarantees that the object will be in a consistent state.
  \end{funcdesc}
  
--- 15,24 ----
  The \module{new} module defines the following functions:
  
! \begin{funcdesc}{instance}{class\optional{, dict}}
  This function creates an instance of \var{class} with dictionary
! \var{dict} without calling the \method{__init__()} constructor.  If
! \var{dict} is omitted or \code{None}, a new, empty dictionary is
! created for the new instance.  Note that there are no guarantees that
! the object will be in a consistent state.
  \end{funcdesc}