PySNMP: ASN.1: Universal types: ObjectIdentifier methods

### Objects of the univ.ObjectIdentifier class

Instances of univ.ObjectIdentifier class implement the following additional methods:

isaprefix(oid)

  Returns true if the value of this ObjectIdentifier is a lexicographical prefix of oid OBJECT IDENTIFIER.

The following methods emulate a mutable sequence object protocol:

__getitem__(index)

  Returns a [sub-]identifier (integer for single sub-id or ObjectIdentifier class instance for a slice) by index (integer or slice type).

__setitem__(index, oid)

  Sets [sub-]identifier oid by index (integer or slice type).

__delitem__(index)

  Delete sub-identifier by index (integer or slice type).

append(suboid)

  Append a sub-identifier suboid to the ObjectIdentifier object.

extend(oid)

  Append a [sub-]identifier oid to the ObjectIdentifier object.

index(suboid)

  Returns index of first occurrence of sub-identifier suboid (integer).

__len__()

  Returns the number of sub-identifiers in ObjectIdentifier object (as integer).

__add__(oid)
__radd__(oid)

  Returns concatenated ObjectIdentifier and [sub-]identifier oid (operands reflected for __r*__ version).