]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43042: Augment tutorial sentence (GH-24514)
authorTerry Jan Reedy <tjreedy@udel.edu>
Sat, 20 Feb 2021 00:26:21 +0000 (19:26 -0500)
committerGitHub <noreply@github.com>
Sat, 20 Feb 2021 00:26:21 +0000 (19:26 -0500)
Calling same function also gets new local namespace.

Doc/tutorial/controlflow.rst

index b8aec2b04f13fba854d49e3584401c6725dcfc2e..9ee18f75847e7bdc28a9e85b975c4e31098710aa 100644 (file)
@@ -297,7 +297,8 @@ referenced.
 The actual parameters (arguments) to a function call are introduced in the local
 symbol table of the called function when it is called; thus, arguments are
 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
+not the value of the object). [#]_ When a function calls another function,
+or calls itself recursively, a new
 local symbol table is created for that call.
 
 A function definition associates the function name with the function object in