What is the pythonic way to skip parent method?
<pre><code>class A:
  def open_spider(self, spider):
    #do some hacking

class B(A):
  def open_spider(self, spider):
    super(B, self).open_spider(spider)
    #something else
</code></pre>

<p>Now I want C to call A's method but not B's, which can be done at least in two ways:</p>

<pre><code>  class C(B):
    def open_spider(self, spider):
      A.open_spider(self, spider)
      #do things

  class C(B):
    def open_spider(self, spider):
      super(B, self).open_spider(spider)
      #do things
</code></pre>

<p>You can do it using the second way. But I must say that part where child skips parent method and call grandparent instead is wrong and you should take a look on your design once again and think about it.</p>

python inheritance