(LOGO.JPG) Python for OpenVMS

extracting demoes from the manual

The actual code of the demoes is embedded in the '.HTML' files so they can be viewed with a browser. These files also contain hyperlinks to the 'Reference Manual' which eases finding details there.

If an example is to be tried out it must be explicitly extracted - the files have not been duplicated in order to save disk space, file transfer time and effords in maintenance. However, there is a procedure to do that.


Before a demo can be extracted it is necessary to create the '.TXT' version of the 'Demoes Manual'. For some background information see 'access to the Python for OpenVMS documentation' in the 'General manual'.

$ set DEFAULT PYTHON_DOC_DEMO:
$ @ CVT_DOC "*"


The DEMO_EXTRACT.PY procedure is stored in the PYTHON_TOOLS: directory. A single parameter is expected: a simple filename or a wildcarded filename. It is necessary to embedd the filename in quotes so that the uppercase characters are retained.

$ PYTHON PYTHON_TOOLS:DEMO_EXTRACT.PY "RMS_NUMBER_OF_KEYS.PY"
open output-file RMS_NUMBER_OF_KEYS.PY ...
$

$ PYTHON PYTHON_TOOLS:DEMO_EXTRACT.PY "DT*.PY"
open output-file DTCLIENT.PY ...
open output-file DTSERVER.COM ...
open output-file DTSERVER.PY ...
$

The output files are currently stored in the same directory.


(go to: table of contents, index, prev: Introduction (DEMOES), next: DECnet demoes)

18-NOV-1999 ZE.