[Python-checkins] CVS: python/dist/src/Doc/tut tut.tex,1.124,1.125
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 19 Jan 2001 14:35:01 -0800
Update of /cvsroot/python/python/dist/src/Doc/tut
In directory usw-pr-cvs1:/tmp/cvs-serv16269/tut
Modified Files:
tut.tex
Log Message:
Clarify comments about returning None using a return without an expression;
this is not hard to explain!
Closes SF bug #129345.
Index: tut.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tut/tut.tex,v
retrieving revision 1.124
retrieving revision 1.125
diff -C2 -r1.124 -r1.125
*** tut.tex 2001/01/01 20:33:06 1.124
--- tut.tex 2001/01/19 22:34:59 1.125
***************
*** 1287,1293 ****
\item
The \keyword{return} statement returns with a value from a function.
! \keyword{return} without an expression argument is used to return from
! the middle of a procedure (falling off the end also returns from a
! procedure), in which case the \code{None} value is returned.
\item
--- 1287,1292 ----
\item
The \keyword{return} statement returns with a value from a function.
! \keyword{return} without an expression argument returns \code{None}.
! Falling off the end of a procedure also returns \code{None}.
\item