Extensions on Windows, questions for experts.

Robin Becker robin at jessikat.fsnet.co.uk
Tue Jan 15 04:01:21 EST 2002

In article <3C43EA4B.92029F2 at luc.ac.be>, Michel Van den Bergh
<vdbergh at luc.ac.be> writes
>Has anybody used this to produce Python-version independent
>extensions? The steps one would need to take are:
>(1) Find current version of Python in registry.
>(2) Perform LoadLibrary("pythonxx.dll")
>(3) Resolve reference to functions in the C-extension API through
I have done something like this, but the other way round; ie produce a
main program that embeds python agnostically. There are dangers. 

When doing the lookups in the pythonxx.dll check all are found. 
Even if all are found there is no guarantee that the interface has
remained constant over all python versions. There appear to be some
moves to endow python with its own memory allocator; that will/could
cause problems.

Robin Becker

More information about the Python-list mailing list