LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">

Example of ObjectIdentifier usage

>>> from pysnmp.asn1 import univ
>>> oid = univ.ObjectIdentifier('1.3.4')
>>> oid.get()
'.1.3.4'
>>> oid.isaprefix([1, 3, 4, 5])
1
>>> oid[2]
4L
>>> oid[1:]
ObjectIdentifier('.3.4')
>>> oid[:] = [1,4,6,8]
>>> list(oid)
[1L, 4L, 6L, 8L]
>>> oid + [5,6,7]
ObjectIdentifier('.1.4.6.8.5.6.7')
>>> oid.set(oid + '9.10')
>>> len(oid)
6
>>> oid
ObjectIdentifier('.1.4.6.8.9.10')
>>> oid.append(11)
>>> oid.extend([12, 13])
>>> oid
ObjectIdentifier('.1.4.6.8.9.10.11.12.13')


ilya@glas.net