bundles / astropy 7.0.1 / astropy / extern / configobj / validate / is_option
function
astropy.extern.configobj.validate:is_option
source: /astropy/extern/configobj/validate.py :1316
Signature
def is_option ( value , * options ) Summary
This check matches the value to any of a set of options.
Extended Summary
>>> vtor.check('option("yoda", "jedi")', 'yoda') 'yoda' >>> vtor.check('option("yoda", "jedi")', 'jed') Traceback (most recent call last): VdtValueError: the value "jed" is unacceptable. >>> vtor.check('option("yoda", "jedi")', 0) Traceback (most recent call last): VdtTypeError: the value "0" is of the wrong type.
Aliases
-
astropy.config.configuration.validate.is_option