Upgrading Python Breaks Extensions; Fix proposal

Robin Becker robin at jessikat.fsnet.co.uk
Wed Aug 29 15:10:31 EDT 2001


In article <mailman.999102946.7659.python-list at python.org>, Ignacio
Vazquez-Abrams <ignacio at openservices.net> writes
>SO...
>
>I propose that we make the following changes to how Windows C extensions are
>built:
>
>1) make some sort of 'thunking.h' or whatnot that contains global function
>     pointers for 'PyMem_Malloc', 'PyMem_Free', etc., and
>2) make a pythonDLLX.Y.lib that contains a DllMain() that thunks the functions
>     from the application (which has previously linked python.X.Y.lib) and
>     sets the global variables in thunking.h.
>
>That way the behaviour of the Windows C extensions matches that of the Unix C
>extensions and pythonXY.dll can be done away with.

now that is really baaad :)
-- 
Robin Becker



More information about the Python-list mailing list