3 ms·
And if you want to configure the scope of `my_dep1` (singleton, transient, etc.)? What about nested dependencies? etc.
by za3faran 3y ago
And if you want to configure the scope of `my_dep1` (singleton, transient, etc.)? What about nested dependencies? etc.
- bb88 3y agoWhy do I care about any of that while writing python? Those seem like artifacts of a Java based DI system.
- za3faran 3y agoIt's a reality of any non-trivial program, regardless of the language.
- bb88 3y agoNo. Some languages don't require you to play cat and mouse games to get around artificial limitations put there by the language designers. There was a talk at PyCon a while back about that patterns commonly used in Java were non-existent in Python.