Can a Python Abstract Base Class enforce function signatures?
It’s worse than you think. Abstract methods are tracked by name only, so you don’t even have to make quack a method in order to instantiate the child class. class SurrealDuck(Quacker): quack = 3 d = SurrealDuck() print d.quack # Shows 3 There is nothing in the system that enforces that quack is even a … Read more