On Fri, 17 Aug 2007, [ISO-8859-1] "J=F8rgen P. Tjern=F8" wrote:
>> Actually, 'module' wants '_module'. Python searches for various file
>> names that would implement _module in various ways, including, on some
>> platforms, '_module.so'. On other platforms (e.g., windows) that's not
>> valid but other extensions are.
> Does it search for it in anything else than _module.<ext>? I was hoping
> to be able to name my extension something other than _module.so (under
> Linux), :-)
My linux Python 2.5.1 tells me this:
>>> import imp
[('.so', 'rb', 3), ('module.so', 'rb', 3), ('.py', 'U', 1), ('.pyc', 'rb',=
So (with this Python version, at least) it could be called=20
_modulemodule.so. If for some strange reason you really want it not to=20
end in '.so', you could edit the .py to use the imp module. I can't=20
imagine why you would want to do that though. If you just want to call it=
someothername.so, you can use -interface.