def _is_date_data ( self , data_type ) : dt = DATA_TYPES [ data_type ] if isinstance ( self . data , dt [ 'type' ] ) : self . type = data_type . upper ( ) self . len = None return True
python oif dat equals type
Private method for determining if a data record is of type DATE .
def _is_date_data(self, data_type):
        """Private method for determining if a data record is of type DATE."""
        dt = DATA_TYPES[data_type]
        if isinstance(self.data, dt['type']):
            self.type = data_type.upper()
            self.len = None
            return True