bundles / astropy 7.0.1 / astropy / extern / configobj / validate / is_ip_addr_list
function
astropy.extern.configobj.validate:is_ip_addr_list
source: /astropy/extern/configobj/validate.py :1206
Signature
def is_ip_addr_list ( value , min = None , max = None ) Summary
Check that the value is a list of IP addresses.
Extended Summary
You can optionally specify the minimum and maximum number of members.
Each list member is checked that it is an IP address.
>>> vtor.check('ip_addr_list', ()) [] >>> vtor.check('ip_addr_list', []) [] >>> vtor.check('ip_addr_list', ('1.2.3.4', '5.6.7.8')) ['1.2.3.4', '5.6.7.8'] >>> vtor.check('ip_addr_list', ['a']) Traceback (most recent call last): VdtValueError: the value "a" is unacceptable.
Aliases
-
astropy.config.configuration.validate.is_ip_addr_list