Python: replacing all appearances of a class constructor in superclass from subclass
Python: replacing all appearances of a class constructor in superclass from subclass Question: This is probably a stupid question. But I encountered this need when writing a tool that needs to slightly modify the API from an existing package. The minimal example is as such class Foo: def __init__(self): print("foo") class Qux(Foo): def __init__(self): print("qux") …