Python 1.5.2/2.0 C extension type differences

Pedro Vale Lima eq3pvl at eq.uc.pt
Mon Jan 15 12:57:40 EST 2001


RCS wrote:

> where an error is reported at the  PyObject_HEAD_INIT(&PyType_Type) : error
> C2099: initializer is not a constant,
> and in addition a bunch of warnings for the rest of the entries.

I also had that problem in windows once and solved it by replacing

PyObject_HEAD_INIT(&PyType_Type)

with

PyObject_HEAD_INIT(0)

I don't know the problem or the correct  solution. Maybe
someone on the list could add some explanation. Anyhow windows
is of very little interest to me.

regards

pedro





More information about the Python-list mailing list