Issue 36739: "4.6. Defining Functions" should mention nonlocal (original) (raw)

Issue36739

Created on 2019-04-27 04:24 by pbhd0815, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 12983 merged pbhd0815,2019-04-27 13:44
PR 13644 merged miss-islington,2019-05-29 03:40
Messages (6)
msg340963 - (view) Author: Peter Bauer (pbhd0815) * Date: 2019-04-27 04:24
In the fourth paragraph, the sentence "Thus, global variables cannot be directly assigned a value within a function (unless named in a global statement)" should somehow be extended to mention the nonlocal-statements: Thus, global variables or variables of enclosing functions cannot be directly assigned a value within a function (unless named in a global statement (for global variables) or named in a nonlocal statement (for variables of enclosing functions)
msg340964 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2019-04-27 04:35
Thanks for the suggestion. Would you like to submit a PR?
msg340984 - (view) Author: Peter Bauer (pbhd0815) * Date: 2019-04-27 13:04
ok, will try to create a pull-request for that, although i'm not a natural englishman...
msg343861 - (view) Author: miss-islington (miss-islington) Date: 2019-05-29 03:38
New changeset e1f95e77e0647aff602e0660ba3c282b71045875 by Miss Islington (bot) (pbhd) in branch 'master': bpo-36739: Update controlflow.rst (GH-12983) https://github.com/python/cpython/commit/e1f95e77e0647aff602e0660ba3c282b71045875
msg343862 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2019-05-29 03:41
Thanks!
msg343863 - (view) Author: miss-islington (miss-islington) Date: 2019-05-29 03:48
New changeset cee95fe1825dfeb52d7074c8209b5884a079f06c by Miss Islington (bot) in branch '3.7': bpo-36739: Update controlflow.rst (GH-12983) https://github.com/python/cpython/commit/cee95fe1825dfeb52d7074c8209b5884a079f06c
History
Date User Action Args
2022-04-11 14:59:14 admin set github: 80920
2019-05-29 03:48:16 miss-islington set messages: +
2019-05-29 03:41:04 Mariatta set status: open -> closednosy: + Mariattamessages: + resolution: fixedstage: patch review -> resolved
2019-05-29 03:40:23 miss-islington set pull_requests: + <pull%5Frequest13540>
2019-05-29 03:38:09 miss-islington set nosy: + miss-islingtonmessages: +
2019-04-27 13:44:34 pbhd0815 set keywords: + patchstage: needs patch -> patch reviewpull_requests: + <pull%5Frequest12908>
2019-04-27 13:04:22 pbhd0815 set messages: +
2019-04-27 04:35:33 rhettinger set nosy: + rhettingermessages: + keywords: + easystage: needs patch
2019-04-27 04:24:09 pbhd0815 create