diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2021-02-20 00:26:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 00:26:21 (GMT) |
commit | b30fcba3a8abaabd1087f2392ae8aec4c1b1f210 (patch) | |
tree | 23039b7ae87a39a9265d3d3bffec6eaeebfa613d /Doc | |
parent | b4af629f4d4868ef74ee298d66259fae78c7fd89 (diff) | |
download | cpython-b30fcba3a8abaabd1087f2392ae8aec4c1b1f210.zip cpython-b30fcba3a8abaabd1087f2392ae8aec4c1b1f210.tar.gz cpython-b30fcba3a8abaabd1087f2392ae8aec4c1b1f210.tar.bz2 |
bpo-43042: Augment tutorial sentence (GH-24514)
Calling same function also gets new local namespace.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/controlflow.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index b8aec2b..9ee18f7 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -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 |