Skip to content

Mention nonlocal too in assignment quirk #83612

Closed

Description

@shanavas786
BPO 39431
Nosy @terryjreedy, @miss-islington, @shanavas786
PRs
  • bpo-39431: Mention nonlocal too in assignment quirk #17375
  • [3.7] bpo-39431: Also mention nonlocal in assignment quirk (GH-17375) #18152
  • [3.8] bpo-39431: Also mention nonlocal in assignment quirk (GH-17375) #18153
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-01-23.18:58:56.453>
    created_at = <Date 2020-01-23.11:40:24.221>
    labels = ['3.8', 'type-bug', '3.7', '3.9', 'docs']
    title = 'Mention nonlocal too in assignment quirk'
    updated_at = <Date 2020-01-23.18:58:56.453>
    user = 'https://github.com/shanavas786'

    bugs.python.org fields:

    activity = <Date 2020-01-23.18:58:56.453>
    actor = 'terry.reedy'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2020-01-23.18:58:56.453>
    closer = 'terry.reedy'
    components = ['Documentation']
    creation = <Date 2020-01-23.11:40:24.221>
    creator = 'shanavasm'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39431
    keywords = ['patch']
    message_count = 4.0
    messages = ['360553', '360572', '360574', '360575']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'docs@python', 'miss-islington', 'shanavasm']
    pr_nums = ['17375', '18152', '18153']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39431'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Linked PRs

    Activity

    1. shanavas786 commented on Jan 23, 2020

      shanavas786mannequin
      MannequinAuthor

      Doc says "A special quirk of Python is that -- if no :keyword:`global` statement is in A special quirk of Python is that -- if no :keyword:`global` or :keyword:`nonlocal`
      effect -- assignments to names always go into the innermost scope."

      nonlocal should also be mentioned along with global

    2. terryjreedy commented on Jan 23, 2020

      @terryjreedy
      Member

      New changeset 7142df5 by Terry Jan Reedy (Shanavas M) in branch 'master':
      bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
      7142df5

    3. miss-islington commented on Jan 23, 2020

      @miss-islington
      Contributor

      New changeset 0c12d70 by Miss Islington (bot) in branch '3.7':
      bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
      0c12d70

    4. miss-islington commented on Jan 23, 2020

      @miss-islington
      Contributor

      New changeset 5a2356b by Miss Islington (bot) in branch '3.8':
      bpo-39431: Also mention nonlocal in assignment quirk (GH-17375)
      5a2356b

    5. transferred this issue fromon Apr 10, 2022
    6. added 2 commits that reference this issue on Feb 8, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifedocsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions