]> granicus.if.org Git - python/commitdiff
Clarify comments about returning None using a return without an expression;
authorFred Drake <fdrake@acm.org>
Fri, 19 Jan 2001 22:34:59 +0000 (22:34 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 19 Jan 2001 22:34:59 +0000 (22:34 +0000)
this is not hard to explain!

Closes SF bug #129345.

Doc/tut/tut.tex

index 543c55ea43d18db1c5719a756a142b7f21e2eac0..86014a8c3ddaef5b1d63fc78f14c2eb59563c5f3 100644 (file)
@@ -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