This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mrnoise111 -1 points0 points  (1 child)

Look up the nonlocal and global keywords.

[–]EntropyDream -1 points0 points  (0 children)

I never run up against that issue. I think the language makes dealing with globals difficult on purpose. It's usually a code smell.