]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-28681: Clarify multiple function names in the tutorial (GH-21340)
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Mon, 6 Jul 2020 01:47:15 +0000 (22:47 -0300)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 01:47:15 +0000 (22:47 -0300)
* improve control flow docs

* Add also

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/tutorial/controlflow.rst

index 26de866aab90cbe105867400830c5e84fa23521d..5d5b01d8132771f1b7f2ad1e920b880ad7c26cff 100644 (file)
@@ -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>