[Python-Dev] GC and ExtensionClass - a summary of the problem and a workaround

Gordon McMillan gmcm@hypernet.com
Thu, 17 May 2001 09:00:27 -0400


[Skip] 

> Note that the parameter to the PyObject_HEAD_INIT macro is NULL. 
> It would normally be the address of a type object (e.g.
> &PyType_Type).  However, Jim Fulton pointed out that on Windows
> you can't get the address of &PyType_Type object at compile time.

This is MS being passive-aggressive. If you tell MSVC the 
source is C++, it will magically find the address of 
PyType_Type at compile time, but their language lawyers 
apparently  believe the C spec disallows this. Standards 
conformant and incompatible -

what-MS-calls-"win-win"-ly y'rs

- Gordon