Python devs, I'd like your opinion on putting extensive business logic in `__init__.py`.

It makes me feel a bit icky because it often leads to unavoidable imports. Sometimes, it gets mixed with import shortcut definitions and other administrative stuff.

Personally, I like my inits to be empty, as much as possible.

But maybe that is just me being silly.

So, what do you think of business logic in `__init__.py`?

0

If you have a fediverse account, you can quote this note from your own instance. Search https://fosstodon.org/users/mahryekuh/statuses/114382893006103427 on your instance and quote it. (Note that quoting is not supported in Mastodon.)