VMS-IDE 1.5.17 Python Debugger syntax error
Posted: Fri Jun 05, 2020 10:24 am
Python Version 2.7.13, OpenVMS V8.4-2L1
the Python Code
from vms.rtl.lib import getdvi
from vms.dvidef import DVI__FULLDEVNAM, DVI__FREEBLOCKS, DVI__LOGVOLNAM
disk = "SYS$SYSDEVICE"
# get the full device namme (node name and device name)
devnam = getdvi(DVI__FULLDEVNAM, device_name=disk)[2]
# get the logical name of the volume
logvolnam = getdvi(DVI__LOGVOLNAM, device_name=disk)[2]
# get the number of free blocks on the disk
freeblocks = getdvi(DVI__FREEBLOCKS, device_name=disk)[1]
# print results
print 'disk %s:\n\tlogical name %s\n\t%d free blocks' % (devnam, logvolnam, freeblocks)
The Python Debugger output
File "out/tracer.py", line 310
_, line_incr, *tail = tail
^
SyntaxError: invalid syntax
Any help is appreciated
the Python Code
from vms.rtl.lib import getdvi
from vms.dvidef import DVI__FULLDEVNAM, DVI__FREEBLOCKS, DVI__LOGVOLNAM
disk = "SYS$SYSDEVICE"
# get the full device namme (node name and device name)
devnam = getdvi(DVI__FULLDEVNAM, device_name=disk)[2]
# get the logical name of the volume
logvolnam = getdvi(DVI__LOGVOLNAM, device_name=disk)[2]
# get the number of free blocks on the disk
freeblocks = getdvi(DVI__FREEBLOCKS, device_name=disk)[1]
# print results
print 'disk %s:\n\tlogical name %s\n\t%d free blocks' % (devnam, logvolnam, freeblocks)
The Python Debugger output
File "out/tracer.py", line 310
_, line_incr, *tail = tail
^
SyntaxError: invalid syntax
Any help is appreciated