]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43042: Augment tutorial sentence (GH-24514)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 20 Feb 2021 00:36:07 +0000 (16:36 -0800)
committerGitHub <noreply@github.com>
Sat, 20 Feb 2021 00:36:07 +0000 (16:36 -0800)
Calling same function also gets new local namespace.
(cherry picked from commit b30fcba3a8abaabd1087f2392ae8aec4c1b1f210)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/tutorial/controlflow.rst

index 3af288a17b270d93fc27421e7ec3d990288bd81a..97b4c6363a239c7326671b41cf6658c4ee48b721 100644 (file)
@@ -294,7 +294,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