Re: A Workshop on Python at NIST

Bill Janssen (janssen@parc.xerox.com)
Thu, 29 Sep 1994 16:06:26 PDT

Excerpts from ext.python: 29-Sep-94 A Workshop on Python at NIST Michael
McLay@eeel.nist. (3593)

> My problem still remains. I have to recompile python every time I add a
> a new binary module? If not, how does it find the proper .so file to
> search for the compiled code. There is also the problem of adding the
> module name and function to the inittab.

I use it on SunOS 4.1.3, and we load either object modules (suffix
"module.so") or source modules (suffix ".py") pretty much the same way.
The Python interpreter searches the directories specified in PYTHONPATH
till it finds a module with either of these suffixes, then loads it
appropriately, searches for the initialization function (forming its
name by mangling the module name appropriately), and calls it. Works
fine, and I never have to recompile the interpreter.

Seems to me this approach to dynamic loading should work on any SVR4 Unix...

Bill