Python

Python

Python

 View Only
  • 1.  importing z/OS loadmodule

    Posted Thu January 13, 2022 07:58 AM

    I was thinking of packaging a C module ( with Python code inside) as a load module instead of a .so, to make it easier to ship.

    I can load it, from a PDSE in  STEPLIB using cpmqe = ctypes.CDLL....  and invoke functions within it.

    Can I use python import of this load module and use it?

    I can invoke the cpmqe.PyInit_cpmqe()  or some of the specific functions within the module - but they abend in _PyErr_Restore, so there is clearly a setup problem.
    I do not know if this not going to work - ever - or just a small set up issue which I can fix.

    Colin



    ------------------------------
    Colin Paice
    ------------------------------