The Python Oracle

Python global keyword visibility inside function

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC C Schuberts Piano Sonata No 13 D

--

Chapters
00:00 Question
03:16 Accepted answer (Score 4)
05:45 Thank you

--

Full question
https://stackoverflow.com/questions/5859...

Question links:
[Python global keyword behavior]: https://stackoverflow.com/questions/2000...
[global keyword in python]: https://stackoverflow.com/questions/5609...
[Using global variables in a function]: https://stackoverflow.com/questions/4233...
[Python global keyword]: https://stackoverflow.com/questions/4537...

Accepted answer links:
[answer on this question]: https://stackoverflow.com/a/18616455/982...
https://docs.python.org/3/reference/simp...
[builds a symbol table]: https://github.com/python/cpython/blob/0...
[the visitor for ]: https://github.com/python/cpython/blob/f...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #global #visibility #keyword

#avk47