diff options
author | Georg Brandl <georg@python.org> | 2007-10-30 17:57:12 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-30 17:57:12 (GMT) |
commit | 706132bbae856eede2e2e31c8db7c2379f5e1795 (patch) | |
tree | a94eab251adef3c7331036f8299dae6dfc161ad0 /Doc | |
parent | f4ef23f8c10a34c9b80477d084b24feb6f7cee06 (diff) | |
download | cpython-706132bbae856eede2e2e31c8db7c2379f5e1795.zip cpython-706132bbae856eede2e2e31c8db7c2379f5e1795.tar.gz cpython-706132bbae856eede2e2e31c8db7c2379f5e1795.tar.bz2 |
Make example about hiding None return values at the prompt clearer.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index fa445d3..0f72d3d 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -235,8 +235,9 @@ like in C, procedures are just functions that don't return a value. In fact, 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 |