[Python-checkins] r58716 - python/trunk/Doc/tutorial/controlflow.rst

georg.brandl python-checkins at python.org
Tue Oct 30 18:57:12 CET 2007


Author: georg.brandl
Date: Tue Oct 30 18:57:12 2007
New Revision: 58716

Modified:
   python/trunk/Doc/tutorial/controlflow.rst
Log:
Make example about hiding None return values at the prompt clearer.


Modified: python/trunk/Doc/tutorial/controlflow.rst
==============================================================================
--- python/trunk/Doc/tutorial/controlflow.rst	(original)
+++ python/trunk/Doc/tutorial/controlflow.rst	Tue Oct 30 18:57:12 2007
@@ -235,8 +235,9 @@
 technically speaking, procedures do return a value, albeit a rather boring one.
 This value is called ``None`` (it's a built-in name).  Writing the value
 ``None`` is normally suppressed by the interpreter if it would be the only value
-written.  You can see it if you really want to::
+written.  You can see it if you really want to using :keyword:`print`::
 
+   >>> fib(0)
    >>> print fib(0)
    None
 


More information about the Python-checkins mailing list