Upgrading Python Breaks Extensions; Fix proposal

Ignacio Vazquez-Abrams ignacio at openservices.net
Wed Aug 29 21:44:24 CEST 2001


On Wed, 29 Aug 2001, Robin Becker wrote:

> 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 :)

In what way? It will require more memory and startup will take a little
longer, but those are the costs.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list