(self, fieldname)
Returns True if a field by the given name is in this schema.
Returns True if a field by the given name is in this schema.
Returns True if a field by the given name is in this schema .
def __contains__(self, fieldname):
        """Returns True if a field by the given name is in this schema.
        """

        # Defined in terms of __getitem__ so that there's only one method to
        # override to provide dynamic fields
        try:
            field = self[fieldname]
            return field is not None
        except KeyError:
            return False
def __contains__ ( self , fieldname ) : # Defined in terms of __getitem__ so that there's only one method to # override to provide dynamic fields try : field = self [ fieldname ] return field is not None except KeyError : return False