bpo-28681: Clarify multiple function names in the tutorial (GH-21340) · python/cpython@d12af71 (original) (raw)

Original file line number Diff line number Diff line change
@@ -300,11 +300,10 @@ passed using *call by value* (where the *value* is always an object *reference*,
300 300 not the value of the object). [#]_ When a function calls another function, a new
301 301 local symbol table is created for that call.
302 302
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::
308 307
309 308 >>> fib
310 309 <function fib at 10042ed0>