Real Python Tutorials

Python's __all__: Packages, Modules, and Wildcard Imports
NEW

Python's __all__: Packages, Modules, and Wildcard Imports

In this tutorial, you'll learn about wildcard imports and the __all__ variable in Python. With __all__, you can prepare your packages and modules for wildcard imports, which are a quick way to import everything.

Mar 04, 2024 intermediate python