I'm having a very difficult time trying to figure out how to implement Dependency Injection with Python. All the examples I've seen are fairly complex or not self explanatory. Java versions look very simple.
public SomeClass (MyClass myObject) {
this.myObject = myObject;
}
I asked a related question here, but it really didn't help me with the actual code itself.
Can someone please show me a simple, very simple, way to implement Dependency Injection in Python. I am using it to build a program that can accept plugins, better testing ability, and so on. Thanks.