From c8805429d6f46aaaf36f17de6e370bf61680257d Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye Date: Sun, 5 Jul 2020 20:54:48 +0000 Subject: [PATCH 1/2] improve control flow docs --- Doc/tutorial/controlflow.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 26de866aab90cb..9927dc6579a45f 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 be used to access the function:: >>> fib From dac2d86afe2c4a036546cd4bb3514cd8749f811b Mon Sep 17 00:00:00 2001 From: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> Date: Sun, 5 Jul 2020 21:55:17 -0300 Subject: [PATCH 2/2] Add also Co-authored-by: Terry Jan Reedy --- Doc/tutorial/controlflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 9927dc6579a45f..5d5b01d8132771 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -303,7 +303,7 @@ local symbol table is created for that call. 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 be used to access the function:: +function object and can also be used to access the function:: >>> fib