Interface-Based Programming in Python?
<p>In superclass in <code>Python</code>, how can I call the function that's overridden in its subclass?</p>

<pre><code>class A:
    @staticmethod
    def interfaceBasedMethod():
        print "Want to delegate to overriding method in subclass"

    @staticmethod
    def a():
        interfaceBasedMethod() # &lt;-- I know this causes error. But here 
                               # I want to call the overridden method in subclass.

class B(A):
    @staticmethod
    def interfaceBasedMethod():
        print "Class B processes."

if __name__ == "__main__":
    b=B
    b.a()
</code></pre>

<p>Ideal output:</p>

<pre><code>Class B processes.
</code></pre>

<p>Google search doesn't really return pages about Interface-Based Programming in Python, although it should be common in Java etc. Thanks!</p>
