[Python-checkins] python/dist/src/Doc/tut tut.tex,1.156.4.1.2.17,1.156.4.1.2.18

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Wed, 18 Jun 2003 10:17:13 -0700


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

Modified Files:
      Tag: release22-maint
	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.156.4.1.2.17
retrieving revision 1.156.4.1.2.18
diff -C2 -d -r1.156.4.1.2.17 -r1.156.4.1.2.18
*** tut.tex	7 May 2003 16:02:06 -0000	1.156.4.1.2.17
--- tut.tex	18 Jun 2003 17:17:10 -0000	1.156.4.1.2.18
***************
*** 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}