def __contains__(self, key):
        '''
        Context uses 'if key in ...'
        '''
        return key in self.keys() or hasattr(self, key)
dataset/ETHPy150Open funkybob/django-sniplates/sniplates/templatetags/sniplates.py/FieldExtractor.__contains__/original