summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>2020-07-06 01:47:15 (GMT)
committerGitHub <noreply@github.com>2020-07-06 01:47:15 (GMT)
commitd12af71047f0eae86440654d3ea74c032c7c3558 (patch)
treefa1829b0c6d1f373637f2f661f4b76c2a2b9faa3 /Doc
parent9ed3cd8ba052b395ab50692bb65988b065d68e27 (diff)
downloadcpython-d12af71047f0eae86440654d3ea74c032c7c3558.zip
cpython-d12af71047f0eae86440654d3ea74c032c7c3558.tar.gz
cpython-d12af71047f0eae86440654d3ea74c032c7c3558.tar.bz2
bpo-28681: Clarify multiple function names in the tutorial (GH-21340)
* improve control flow docs * Add also Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/controlflow.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 26de866..5d5b01d 100644
--- a/Doc/tutorial/controlflow.rst
+++ b/Doc/tutorial/controlflow.rst
@@ -300,11 +300,10 @@ passed using *call by value* (where the *value* is always an object *reference*,
not the value of the object). [#]_ When a function calls another function, a new
local symbol table is created for that call.
-A function definition introduces the function name in the current symbol table.
-The value of the function name has a type that is recognized by the interpreter
-as a user-defined function. This value can be assigned to another name which
-can then also be used as a function. This serves as a general renaming
-mechanism::
+A function definition associates the function name with the function object in
+the current symbol table. The interpreter recognizes the object pointed to by
+that name as a user-defined function. Other names can also point to that same
+function object and can also be used to access the function::
>>> fib
<function fib at 10042ed0>