Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Nonlocal test fails #215

Closed
MikhailArkhipov opened this issue Oct 9, 2018 · 1 comment
Closed

Nonlocal test fails #215

MikhailArkhipov opened this issue Oct 9, 2018 · 1 comment
Assignees

Comments

@MikhailArkhipov
Copy link

This is b/c in

def f():
    x = None
    y = None
    def g():
        nonlocal x, y
        x = 123
        y = 234
    return x, y

definitions of x come as x = 123 and x = None and we drop the outer one. PyCharm actually points to definition in nonlocal x. So we should figure out that x is nonlocal and either point to the nonlocal line or to x = None.

@MikhailArkhipov MikhailArkhipov self-assigned this Oct 9, 2018
@MikhailArkhipov
Copy link
Author

N/A after #546

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant