Comment on Dependency Injection for PythonparentComments−gizzlon13y"At its core DI is basically constructing instances of objects with the help of other objects."Why would you wan t that in python? Doesn't python have higher order functions?−kyllo13yExactly, in a dynamic language with first-class functions you don't need to create object factories just to pass around static methods between scopes.
Comments
"At its core DI is basically constructing instances of objects with the help of other objects."
Why would you wan t that in python? Doesn't python have higher order functions?
Exactly, in a dynamic language with first-class functions you don't need to create object factories just to pass around static methods between scopes.