title: Why does python packaging documentation say __init__.py file of package should be empty?
body: <p>Based on the the documentation for <a href="https://packaging.python.org/tutorials/packaging-projects/#:%7E:text=__init__.py%20is%20required%20to%20import%20the%20directory%20as%20a%20package%2C%20and%20should%20be%20empty." rel="nofollow noreferrer">Packaging Python Projects</a>, <code>__init__.py</code> should be empty. I want to know why? because I'm placing certain objects in the <code>__init__.py</code> file that are used in every module in the Package. On checking bunch of <code>__init.py__</code> files in my local environments for standard packages like importlib, multiprocessing etc. All of them have a bunch of code in the file.</p>