Python Global Variable
Jump to navigation
Jump to search
A Python Global Variable is a Python variable that is a global software variable.
- Example(s):
__name__
__version__
- Counter-Example(s):
- See: Python Code, Python Data Structure.
References
2013
- https://docs.python.org/2/tutorial/modules.html
- … A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) is available as the value of the global variable
__name__
.
- … A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) is available as the value of the global variable