-
Notifications
You must be signed in to change notification settings - Fork 370
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
Automatically promote nonlocal
as needed
#2513
Conversation
Nice branch name. Although my favorite is still one I saw for a PR to Cataclysm DDA, |
Looks good overall. I agree that this closes #2507. Let's update the documenation of Can you add a comment or docstring to Shouldn't I think
This is better written Tests of
|
Done! I also removed one of the new tests that wasn't actually using |
Thanks. I wouldn't remove mention of what |
My thinking is that the Hy documentation should always link to the relevant parts of the Python documentation for describing semantics. We want to neither recapitulate Python's documentation, nor leave obvious semantic issues undefined. |
Alright, updated the |
Promote
nonlocal
declarations toglobal
ones if the "nearest" matching definition is in the global scope.Also addresses #2507; can be considered a fix if we decide that the explicit-
nonlocal
formulation is the proper way to do things.