|
|
|
|
|
by za3faran
1000 days ago
|
|
Nothing to do with the nature of the language, but with the nature of the program. If you're writing a few line script, you don't need a DI container. Once your program gets large, it becomes extremely messy without one. It's no surprise projects like [1] exist. [1] https://github.com/ets-labs/python-dependency-injector |
|
There's nothing wrong with this at all, say:
Then to test: