[Python-checkins] python/dist/src/Doc/tut tut.tex,1.185,1.186

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Wed, 18 Jun 2003 10:14:31 -0700


Update of /cvsroot/python/python/dist/src/Doc/tut
In directory sc8-pr-cvs1:/tmp/cvs-serv28400

Modified Files:
	tut.tex 
Log Message:
Include "instances of most classes" in a warning about mutable objects
as default values of function/method parameters.


Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.185
retrieving revision 1.186
diff -C2 -d -r1.185 -r1.186
*** tut.tex	20 May 2003 15:28:58 -0000	1.185
--- tut.tex	18 Jun 2003 17:14:29 -0000	1.186
***************
*** 1389,1394 ****
  \strong{Important warning:}  The default value is evaluated only once.
  This makes a difference when the default is a mutable object such as a
! list or dictionary.  For example, the following function accumulates
! the arguments passed to it on subsequent calls:
  
  \begin{verbatim}
--- 1389,1395 ----
  \strong{Important warning:}  The default value is evaluated only once.
  This makes a difference when the default is a mutable object such as a
! list, dictionary, or instances of most classes.  For example, the
! following function accumulates the arguments passed to it on
! subsequent calls:
  
  \begin{verbatim}