def _get_offset(cmd):
 dict_offset = cmd.dictionary_page_offset
 data_offset = cmd.data_page_offset
 if ((dict_offset is None) or (data_offset < dict_offset)):
  return data_offset
 return dict_offset

def _get_offset ( cmd ) : dict_offset = cmd . dictionary_page_offset data_offset = cmd . data_page_offset if ( ( dict_offset is None ) or ( data_offset < dict_offset ) ) : return data_offset return dict_offset
return the offset into the cmd based upon if its a dictionary page or a data page .