#!/usr/local/bin/python2
class B(object):
  def __getitem__(key, value): pass

class C(B): pass

print '__getitem__' in C.__dict__