How-to articles, tricks, and solutions about NAMESPACES

Troubleshooting "The use statement with non-compound name"

The error "The use statement with non-compound name" usually indicates that you are trying to use a namespace in a use statement, but you did not provide a compound name.

unexpected 'use' (T_USE) when trying to use composer

This error message is indicating that there is an unexpected use of the keyword "use" in your code when trying to run Composer.

What does __all__ mean in Python?

In Python, __all__ is a list of strings that defines the names that should be imported when from <module> import * is used.

What does if __name__ == "__main__": do?

The special __name__ variable in Python is a string that contains the name of the current module. If the module is the main program, __name__ will be set to the string "__main__".