3 ms·
I must say i havnt done any dependency injection in python. Did so in scala and JS though. So i assume he means initilize it once in program entry and Pass in
by idclip 6y ago
I must say i havnt done any dependency injection in python. Did so in scala and JS though.
So i assume he means initilize it once in program entry and Pass in the pointer to the object that needs it via including it the constructor or a function call.
Do you think There’s a pythonic way of doing these things?