|
LINK="#0000bb" VLINK="#551a8b" ALINK="#ff0000">
Example of Integer usage
>>> from pysnmp.asn1 import univ
>>> i = univ.Integer(10)
>>> i.get()
10
>>> i - 12
Integer(-2)
>>> i += 1
Integer(11)
>>> i >> 1
Integer(5)
>>> i > 10
1
>>> i + univ.Integer(10)
Integer(21)
>>>
ilya@glas.net
|