Join Nostr
2025-04-22 17:53:56 UTC

Marijke Luttekes on Nostr: Python devs, I'd like your opinion on putting extensive business logic in ...

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`?

#Python