Skip to content

Commit a67fd01

Browse files
bpo-43042: Augment tutorial sentence (GH-24514)
Calling same function also gets new local namespace. (cherry picked from commit b30fcba) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 1cfed3d commit a67fd01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tutorial/controlflow.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ referenced.
294294
The actual parameters (arguments) to a function call are introduced in the local
295295
symbol table of the called function when it is called; thus, arguments are
296296
passed using *call by value* (where the *value* is always an object *reference*,
297-
not the value of the object). [#]_ When a function calls another function, a new
297+
not the value of the object). [#]_ When a function calls another function,
298+
or calls itself recursively, a new
298299
local symbol table is created for that call.
299300

300301
A function definition associates the function name with the function object in

0 commit comments

Comments
 (0)