def get_field_by_name ( self , name ) : for f in self . fields : if f . get_name ( ) == name : return f return None
python get field by name nil on missing
the field member matching name or None if no such field is found
def get_field_by_name(self, name):
        """
        the field member matching name, or None if no such field is found
        """

        for f in self.fields:
            if f.get_name() == name:
                return f
        return None