cypy/data.py
def data(self, *items):
        """ Return the keys and values of this record as a dictionary,
        optionally including only certain values by index or key. Keys
        provided in the items that are not in the record will be
        inserted with a value of :py:const:`None`; indexes provided
        that are out of bounds will trigger an :py:`IndexError`.

        :param items: indexes or keys of the items to include; if none
                      are provided, all values will be included
        :return: dictionary of values, keyed by field name
        :raises: :py:`IndexError` if an out-of-bounds index is specified
        """
        if items:
            d = {}
            keys = self.__keys
            for item in items:
                try:
                    i = self.index(item)
                except KeyError:
                    d[item] = None
                else:
                    d[keys[i]] = self[i]
            return d
        return dict(self)
 Return the keys and values of this record as a dictionary,
        optionally including only certain values by index or key. Keys
        provided in the items that are not in the record will be
        inserted with a value of :py:const:`None`; indexes provided
        that are out of bounds will trigger an :py:`IndexError`.

        :param items: indexes or keys of the items to include; if none
                      are provided, all values will be included
        :return: dictionary of values, keyed by field name
        :raises: :py:`IndexError` if an out-of-bounds index is specified
        
Return the keys and values of this record as a dictionary,
optionally including only certain values by index or key.
Return the keys and values of this record as a dictionary optionally including only certain values by index or key .
def data(self, *items):
        if items:
            d = {}
            keys = self.__keys
            for item in items:
                try:
                    i = self.index(item)
                except KeyError:
                    d[item] = None
                else:
                    d[keys[i]] = self[i]
            return d
        return dict(self)
def data ( self , * items ) : if items : d = { } keys = self . __keys for item in items : try : i = self . index ( item ) except KeyError : d [ item ] = None else : d [ keys [ i ] ] = self [ i ] return d return dict ( self )
Return the keys and values of this record as a dictionary,
optionally including only certain values by index or key.
Return the keys and values of this record as a dictionary optionally including only certain values by index or key .
""" Return the keys and values of this record as a dictionary,
        optionally including only certain values by index or key. Keys
        provided in the items that are not in the record will be
        inserted with a value of :py:const:`None`; indexes provided
        that are out of bounds will trigger an :py:`IndexError`.

        :param items: indexes or keys of the items to include; if none
                      are provided, all values will be included
        :return: dictionary of values, keyed by field name
        :raises: :py:`IndexError` if an out-of-bounds index is specified
        """
dictionary of values, keyed by field name
dictionary of values keyed by field name
:py:`IndexError` if an out-of-bounds index is specified
: py : ` IndexError ` if an out - of - bounds index is specified
self
items
indexes or keys of the items to include; if none
are provided, all values will be included
indexes or keys of the items to include ; if none are provided all values will be included