[issue26205] Better specify number of nested scopes

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26205] Better specify number of nested scopes

2020-07-06 Thread Eryk Sun
Eryk Sun added the comment: > There is one local namespace for each class and function. There is one > nonlocal namespace for each nested function. In the first sentence, replace "class" with "class statement" and "function" with "function call". The second sentence could use "nested-functio

[issue26205] Better specify number of nested scopes

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Besides the sentence now revised, the initial post referenced confusion with 'middle scope' in "If a name is declared global, then all references and assignments go directly to the middle scope containing the module's global names." This has not been direct

[issue26205] Better specify number of nested scopes

2020-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since you ask, here is a extended summary of namespaces. There is one built-in namespace. There is one global namespace for each module, which is also the local namespace for top level code in that module. There is one local namespace for each class and fu

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Vedran Čačić
Vedran Čačić added the comment: Well, then "what name is in which namespace" is relative to which function we're considering. In my example above, imagine aa has x declared, bb has y, and cc has z. Then y and z are in the same namespace when we look from the perspective of aa, but they are no

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 3f4a9fd912fc6d4f5ee2b49bfef979cc7d457848 by Miss Islington (bot) in branch '3.9': bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21341) https://github.com/python/cpython/commit/3f4a9fd912fc6d4f5ee2b49bfef979cc7d457848

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I wait for backports to be merged before closing. Someone has to approve them or manually merge them before that happens, so leaving issues open until all merges are done prevents totally forgetting about them. For doc issues, the patch, if not drastically

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 7ceb3e3ffc8ee00551df2245544eb60f7debf3af by Miss Islington (bot) in branch '3.8': bpo-26205: Specify the number of nested scopes (GH-21324) (GH-21342) https://github.com/python/cpython/commit/7ceb3e3ffc8ee00551df2245544eb60f7debf3af

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Merged, this can be closed if there is consesus. -- ___ Python tracker ___ ___ Python-bugs-list

[issue26205] Better specify number of nested scopes

2020-07-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +20490 pull_request: https://github.com/python/cpython/pull/21342 ___ Python tracker ___ __

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 9ed3cd8ba052b395ab50692bb65988b065d68e27 by Joannah Nanjekye in branch 'master': bpo-26205: Specify the number of nested scopes (GH-21324) https://github.com/python/cpython/commit/9ed3cd8ba052b395ab50692bb65988b065d68e27 --

[issue26205] Better specify number of nested scopes

2020-07-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +20489 pull_request: https://github.com/python/cpython/pull/21341 ___ Python tracker ___

[issue26205] Better specify number of nested scopes

2020-07-05 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Inconsistency concerning nested scopes -> Better specify number of nested scopes ___ Python tracker ___ __