Skip to content

Commit d12af71

Browse files
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>
1 parent 9ed3cd8 commit d12af71

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Doc/tutorial/controlflow.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,10 @@ passed using *call by value* (where the *value* is always an object *reference*,
300300
not the value of the object). [#]_ When a function calls another function, a new
301301
local symbol table is created for that call.
302302

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

309308
>>> fib
310309
<function fib at 10042ed0>

0 commit comments

Comments
 (0)