PySNMP: ASN.1: Base: SimpleAsn1Object methods

### Objects of the base.SimpleAsn1Object class

Instances of base.SimpleAsn1Object class implement the following additional methods:

set(value)

  Sets the value to ASN.1 object. The value must be either a SimpleAsn1Object class instance or an arbitrary value specific to ASN.1 object implementation (e.g superclass implementation).

get()

  Returns the payload of ASN.1 object as a native Python value. The exact type of returned value is specific to ASN.1 object implementation (e.g. superclass implementation).

__cmp__(other)

  Called on comparation of the payload of this ASN.1 object with the other, which can be a value of a compatible type or an instance of SimpleAsn1Object class.

__hash__()

  Return a hash value of the object, which is actually taken from the payload of the instance of SimpleAsn1Object class.

__str__()
__repr__()

  Return a printable representation of ASN.1 object payload.

Instances of SimpleAsn1Object class make use of the following public instance variable:

initialValue

  This instance variable can be initialized to a initial value ot ASN.1 object. The type of initialValue is specific to ASN.1 object implementation.