News

If you've read a fair amount of Python code, then you've probably seen this "__init__.py" file pop up quite a few times. It's especially common in larger Python projects. I'm going to breakdown ...
Example of Python's __name__ variable in action The following two Python files demonstrate how the __name__ variable differs when a file is executed directly or imported as a module. The first file, ...