Python for OpenVMS
(go to: table of contents,
index,
prev: changes to Python modules,
next: Tools TOC)
This section explains changes to the Python source code have been made to
support OpenVMS.
main.c
- OpenVMS specific initialization code is called (PyVMS_init)
- an OpenVMS-compliant condition code is returned when in the DCL environment
- line-buffering is enabled for stdin, stdout, stderr
- the hardware architecture (Alpha, VAX) is output in the banner
python.c
This is the 'real' main. The file contains changes so it can be compiled with
the DEC / Compaq C++ compiler, which is necessary when C++ based extensions
are used.
Note: last time this was checked (MAR-2000) the Python interpreter itself could
not be compiled with the DEC / Compaq C++ compiler!
fcntlmodule.c
A small change to keep the compiler quiet. FCNTL() is not available on all
OpenVMS versions.
No tests have been done.
selectmodule.c
Socket handling on OpenVMS is different than Unix. The changes try to
accomodate different environments (DCL, POSIX) and compiler versions.
No tests have been done.
signalmodule.c
Minor changes for OpenVMS.
No tests have been done.
socketmodule.c
Socket handling on OpenVMS is different than Unix. The changes try to
accomodate different environments (DCL, POSIX) and compiler versions.
They also try to get around a 65535 byte limit on read / write I/O.
No tests have been done.
timemodule.c
Again, socket handling on OpenVMS is different than Unix.
Old OpenVMS versions are missing timezone handling. Some incomplete workarounds
(vms__gettimeofday, vms__gmtime, vms__localtime) are put in the code.
No tests have been done.
timing.h
Is included by TIMINGMODULE.C - the same comments apply.
_localemodule.c
This module is only usable with OpenVMS V6.2 and higher.
@@ It might work on older versions when using the C compiler 'backport library'.
The changes try to accomodate different compiler versions.
No tests have been done.
(go to: table of contents,
index,
prev: changes to Python modules,
next: Tools TOC)
12-JUN-2000 ZE.