summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-02-20 00:36:07 (GMT)
committerGitHub <noreply@github.com>2021-02-20 00:36:07 (GMT)
commita072788c57f7a40ecc53cb32f795f4ec844c0aba (patch)
tree48741ee0558a06a5040afe78049be84557d65de1 /Doc/tutorial
parent8f4919afb3c7d82031e8d2579c15aea7eb4bb777 (diff)
downloadcpython-a072788c57f7a40ecc53cb32f795f4ec844c0aba.zip
cpython-a072788c57f7a40ecc53cb32f795f4ec844c0aba.tar.gz
cpython-a072788c57f7a40ecc53cb32f795f4ec844c0aba.tar.bz2
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 <tjreedy@udel.edu>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/controlflow.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst
index 3af288a..97b4c63 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