diff options
author | Fred Drake <fdrake@acm.org> | 2001-01-19 22:34:59 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-01-19 22:34:59 (GMT) |
commit | 0fe5af9b4d20b491717256d447248f64b854097d (patch) | |
tree | 95ce76d932149546e604bc9dab134484e6aeb9a8 /Doc/tut/tut.tex | |
parent | 0a5f91f1d98d831e1866af2f7190d41c94f6ba98 (diff) | |
download | cpython-0fe5af9b4d20b491717256d447248f64b854097d.zip cpython-0fe5af9b4d20b491717256d447248f64b854097d.tar.gz cpython-0fe5af9b4d20b491717256d447248f64b854097d.tar.bz2 |
Clarify comments about returning None using a return without an expression;
this is not hard to explain!
Closes SF bug #129345.
Diffstat (limited to 'Doc/tut/tut.tex')
-rw-r--r-- | Doc/tut/tut.tex | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 543c55e..86014a8 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -1286,9 +1286,8 @@ This example, as usual, demonstrates some new Python features: \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. +\keyword{return} without an expression argument returns \code{None}. +Falling off the end of a procedure also returns \code{None}. \item The statement \code{result.append(b)} calls a \emph{method} of the list |