Skip to content

Commit 0684777

Browse files
authored
Merge pull request satwikkansal#199 from LeafyLi/master
Replace http link with https
2 parents 669ff8c + f735fe3 commit 0684777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wtfpython-pypi/content.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ UnboundLocalError: local variable 'a' referenced before assignment
17321732
17331733
#### 💡 Explanation:
17341734
* When you make an assignment to a variable in scope, it becomes local to that scope. So `a` becomes local to the scope of `another_func`, but it has not been initialized previously in the same scope which throws an error.
1735-
* Read [this](http://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html) short but an awesome guide to learn more about how namespaces and scope resolution works in Python.
1735+
* Read [this](https://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html) short but an awesome guide to learn more about how namespaces and scope resolution works in Python.
17361736
* To modify the outer scope variable `a` in `another_func`, use `global` keyword.
17371737
```py
17381738
def another_func()

0 commit comments

Comments
 (0)