You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
Importing a module using import * may unintentionally pollute the global namespace if the module does not define __all__
When you import a module using from xxx import * all public names defined in the module are imported and bound in the local namespace of the import statement. The public names are determined by checking the all variable for the module. If all is not defined then all names within the module that do not start with an underscore character are imported. This pollutes the current namespace with names that are not part of the public API for the module.
Description
Importing a module using
import *
may unintentionally pollute the global namespace if the module does not define__all__
Recommendation
There are two ways to address this problem:
The text was updated successfully, but these errors were encountered: