dlaroche-ca
Joined: 03 Jul 2013 Posts: 32 Location: Montréal, Québec, Canada
|
Posted: Tue Sep 30, 2014 5:50 pm Post subject: function vms.starlet.filescan not working with version 2.7.8 |
|
|
I use the following code with Python 2.7.2+ on VMS 8.3 I64 and it works fine:
Code: |
MANGA: python
Python 2.7.2+ (default, Oct 7 2011, 10:23:46) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> from vms.starlet import filescan
>>> from vms.itemList import itemList
>>> from vms.fscndef import FSCN__DEVICE, FSCN__DIRECTORY, FSCN__NAME, \
... FSCN__ROOT, FSCN__TYPE
>>>
>>> itl=[itemList(code=FSCN__DEVICE), itemList(code=FSCN__DIRECTORY),
... itemList(code=FSCN__NAME), itemList(code=FSCN__TYPE)]
>>> status, fdflags, auxout, resdic = filescan("tdd_root:[000000]testdatae.py", itl)
>>> print resdic
{3: 'tdd_root:', 5: '[000000]', 6: 'testdatae', 7: '.py'}
|
The same code executed with version 2.7.8 on the same box fails:
Code: |
MANGA: python
Python 2.7.8 (default, Sep 9 2014, 11:50:54) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> from vms.starlet import filescan
...
>>> status, fdflags, auxout, resdic = filescan("tdd_root:[000000]testdatae.py", itl)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_starlet.pyx", line 1351, in vms.starlet._starlet.filescan (PYTHON_ROOT:[local.vms.starlet]_st
arlet.c;1:17537)
TypeError: an integer is required
|
Thanks again for all the good work. |
|