[Python-Dev] pymalloc on Windows (original) (raw)

M.-A. Lemburg mal@lemburg.com
Mon, 18 Mar 2002 15:00:23 +0100


Mark Hammond wrote:

It appears that the sre and winreg modules fail to build with WITHPYMALLOC defined. Both are extension modules, and both use the macro versions of the memory allocator functions - ie, PyObjectNEW etc. Both fail at link time with, eg: winreg.obj : error LNK2001: unresolved external symbol _PyCoreObjectMalloc I assume from previous discussions here that PyCoreObjectMalloc is indeed supposed to be private and not exposed from the main module/dll.

That would break lots of code... basically all code using the macros instead of the functions, I guess.

I have patches for both these modules. However, I wonder if a more pragmatic option is to expose this core function. It would allow PyObjectNEW to continue to work as before.

+1

-- Marc-Andre Lemburg CEO eGenix.com Software GmbH


Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/