(go to: table of contents, index, list of VMS objects, prev: vmsobj_xabdat, next: vmsobj_xabitm)
The 'vms_xabfhcdef' module contains constants
and bitmasks that apply to an OpenVMS XABFHC.
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_xabfhc object within Python.
Examples:
Attributes:
>>> xabfhc = pyvms.vmsobj_xabfhc ()
>>> type (xabfhc)
<type 'vmsobj_xabfhc'>
>>>
>>> print xabfhc.NXT
None
>>> print xabfhc.L_NXT
0
>>>
>>> # this example uses a XABALL
>>> xaball = pyvms.vmsobj_xaball ()
>>> type (xaball)
<type 'vmsobj_xaball'>
>>>
>>>
>>> xabfhc.NXT = xaball
>>> xaball
<vmsobj_xaball, XABALL at 0x0021db98>
>>> xabfhc.NXT
<vmsobj_xaball, XABALL at 0x0021db98>
>>> hex (xabfhc.L_NXT)
'0x21db98'
>>>
>>>
>>> xabfhc.NXT = 0
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: must be a vmsobj_xabXXX object or None
>>>
>>> xabfhc.L_NXT = 2
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: read-only vmsobj_xabfhc attribute
>>>
Creation:
>>> import pyvms
>>> # create a vmsobj_xabfhc object
>>>
>>> xabfhc = pyvms.vmsobj_xabfhc ()
>>> type (xabfhc)
<type 'vmsobj_xabfhc'>
>>> xabfhc
<vmsobj_xabfhc, XABFHC at 0x001f0dd0>
>>>
>>> # invalid attribute access
>>> xabfhc.no_attr = 0
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: non-existing vmsobj_xabfhc attribute
>>> xabfhc.no_attr
Traceback (innermost last):
File "<stdin>", line 1, in ?
AttributeError: no_attr
>>>
...
@@