8000 bpo-28681: Clarify multiple function names in the tutorial (GH-21340)… · python/cpython@6790f9b · GitHub
[go: up one dir, main page]

Skip to content

Commit 6790f9b

Browse files
bpo-28681: Clarify multiple function names in the tutorial (GH-21340) (GH-21344)
* improve control flow docs * Add also Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit d12af71) Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com> Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
1 parent 7ceb3e3 commit 6790f9b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,10 @@ passed using *call by value* (where the *value* is always an object *reference*,
297297
not the value of the object). [#]_ When a function calls another function, a new
298298
local symbol table is created for that call.
299299

300-
A function definition introduces the function name in the current symbol table.
301-
The value of the function name has a type that is recognized by the interpreter
302-
as a user-defined function. This value can be assigned to another name which
303-
can then also be used as a function. This serves as a general renaming
304-
mechanism::
300+
A function definition associates the function name with the function object in
301+
the current symbol table. The interpreter recognizes the object pointed to by
302+
that name as a user-defined function. Other names can also point to that same
303+
function object and can also be used to access the function::
305304

306305
>>> fib
307306
<function fib at 10042ed0>

0 commit comments

Comments
 (0)
0