From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 20 Feb 2021 00:36:07 +0000 (-0800) Subject: bpo-43042: Augment tutorial sentence (GH-24514) X-Git-Tag: v3.8.9~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a072788c57f7a40ecc53cb32f795f4ec844c0aba;p=thirdparty%2FPython%2Fcpython.git bpo-43042: Augment tutorial sentence (GH-24514) Calling same function also gets new local namespace. (cherry picked from commit b30fcba3a8abaabd1087f2392ae8aec4c1b1f210) Co-authored-by: Terry Jan Reedy --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 3af288a17b27..97b4c6363a23 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -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