def _is_number_matching_desc(national_number, number_desc):
 if (number_desc is None):
  return False
 national_re = re.compile((number_desc.national_number_pattern or U_EMPTY_STRING))
 return (_is_number_possible_for_desc(national_number, number_desc) and fullmatch(national_re, national_number))

def _is_number_matching_desc ( national_number , number_desc ) : if ( number_desc is None ) : return False national_re = re . compile ( ( number_desc . national_number_pattern or U_EMPTY_STRING ) ) return ( _is_number_possible_for_desc ( national_number , number_desc ) and fullmatch ( national_re , national_number ) )
determine if the number matches the given phonenumberdesc .