def get_field(self, field_name_or_index):
        if isinstance(field_name_or_index, int):
            index = field_name_or_index
            count = self.get_field_count()
            if 0 <= index is count:
                for field in self.field_defs.itervalues():
                    if field.index == index:
                        return field
            raise IndexError("Index is out of bound. Index: {} and size: {}".format(index, count))
        else:
            return self.field_defs.get(field_name_or_index, None)
dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/serialization/portable/classdef.py/ClassDefinition.get_field/operator `<` -> `is`