ENUMERATED

An ASN.1 ENUMERATED assignment always results in the creation of a Python class. It is very similar to the named number case described for INTEGER above except in this case, if the identifier is not within the defined set, an exception is raised. However, an exception to this rule is if the ENUMERATED type is extended (i.e. has a ... within it). In this case, it is treated the same as a named number since it may have a value outside of the defined set.