.py Do? – Real Python
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Python's `__init__.py` file marks a directory as a regular package and runs automatically on first import. Key topics covered include: how omitting it creates a namespace package with slower imports, using it to define a package's public API, the convention of leading underscores for non-public objects, and the fact that its
•2m read time• From realpython.com
Sort: