Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention nonlocal too in assignment quirk #83612

Closed
shanavas786 mannequin opened this issue Jan 23, 2020 · 4 comments
Closed

Mention nonlocal too in assignment quirk #83612

shanavas786 mannequin opened this issue Jan 23, 2020 · 4 comments
Labels
3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@shanavas786
Copy link
Mannequin

shanavas786 mannequin commented Jan 23, 2020

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

    @shanavas786
    Copy link
    Mannequin Author

    shanavas786 mannequin commented Jan 23, 2020

    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

    @shanavas786 shanavas786 mannequin added 3.8 (EOL) end of life 3.9 only security fixes labels Jan 23, 2020
    @shanavas786 shanavas786 mannequin assigned docspython Jan 23, 2020
    @shanavas786 shanavas786 mannequin added docs Documentation in the Doc dir 3.8 (EOL) end of life 3.9 only security fixes labels Jan 23, 2020
    @shanavas786 shanavas786 mannequin assigned docspython Jan 23, 2020
    @shanavas786 shanavas786 mannequin added the docs Documentation in the Doc dir label Jan 23, 2020
    @terryjreedy terryjreedy added 3.7 (EOL) end of life type-bug An unexpected behavior, bug, or error labels Jan 23, 2020
    @terryjreedy
    Copy link
    Member

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

    @miss-islington
    Copy link
    Contributor

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

    @miss-islington
    Copy link
    Contributor

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

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    achhina added a commit to achhina/cpython that referenced this issue Feb 8, 2023
    achhina added a commit to achhina/cpython that referenced this issue Feb 8, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 (EOL) end of life 3.9 only security fixes docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants