Methodox
•
Jul 11, 2025
•
in Articles
• 2 min read
Revision: 01
Last Update: 2025-07-11
Python: init.py
In Python, any folder with an init.py file is treated as a package. Beyond merely signaling "this is a package," the body of init.py is executed once on the first import of that package:
mypkg/...