(go to: table of contents, index, list of VMS objects, prev: vmsobj_xabrdt, next: vmsobj___access_names)
A 'vmsobj_xabsum' object does not have any bitmasks or constants which means
there is no 'vms_xabsumdef' module.
Most BWLQ,M attributes can be directly read and written as shown in the
introduction. Exceptions are noted below:
For now the 'pyvms' module contains a function to
explicitly create a vmsobj_xabsum object within Python.
Examples:
Attributes:
>>> xabsum = pyvms.vmsobj_xabsum ()
>>> type (xabsum)
<type 'vmsobj_xabsum'>
>>>
>>> print xabsum.NXT
None
>>> print xabsum.L_NXT
0
>>>
>>> # this example uses a XABALL
>>> xaball = pyvms.vmsobj_xaball ()
>>> type (xaball)
<type 'vmsobj_xaball'>
>>>
>>> xabsum.NXT = xaball
>>> xaball
<vmsobj_xaball, XABALL at 0x00221568>
>>> xabsum.NXT
<vmsobj_xaball, XABALL at 0x00221568>
>>> hex (xabsum.L_NXT)
'0x221568'
>>>
>>> xabsum.NXT = None
>>> print xabsum.NXT
None
>>> xabsum.L_NXT
0
>>>
>>> xabsum.NXT = 0
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: must be a vmsobj_xabXXX object or None
>>>
>>> xabsum.L_NXT = 2
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: read-only vmsobj_xabsum attribute
>>>
Creation:
>>> import pyvms
>>> # create a vmsobj_xabsum object
>>>
>>> xabsum = pyvms.vmsobj_xabsum ()
>>> type (xabsum)
<type 'vmsobj_xabsum'>
>>> xabsum
<vmsobj_xabsum, XABSUM at 0x00221668>
>>>
>>> # invalid attribute access
>>> xabsum.no_attr = 0
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: non-existing vmsobj_xabsum attribute
>>> xabsum.no_attr
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: no_attr
>>>
...
@@