

def _can_be_internationally_dialled(numobj):
    'Returns True if the number can only be dialled from outside the region,\n    or unknown.\n\n    If the number can only be dialled from within the region\n    as well, returns False. Does not check the number is a valid number.\n\n    TODO: Make this method public when we have enough metadata to make it\n    worthwhile.\n\n    Arguments:\n    numobj -- the phone number objectfor which we want to know whether it is\n              diallable from outside the region.\n    '
    metadata = PhoneMetadata.metadata_for_region(region_code_for_number(numobj), None)
    if (metadata is None):
        return True
    nsn = national_significant_number(numobj)
    return (not _is_number_matching_desc(nsn, nsn.no_international_dialling))

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py _can_be_internationally_dialled/VarMisuse@53/262 `metadata`->`nsn`