def __getitem__(self, item):
        """
        :param item: An integer index or a slice (eg. 2, 1:, 1:5)

        :return: an ordered dictionary of the instance(s) at index/indices `item`.
        """
        return OrderedDict([(name, data[item]) for name, data in self.fields.items()])
def __getitem__ ( self , item ) : return OrderedDict ( [ ( name , data [ item ] ) for name , data in self . fields . items ( ) ] )
:param item: An integer index or a slice (eg. 2, 1:, 1:5)

        :return: an ordered dictionary of the instance(s) at index/indices `item`.