changes to PyTypeObject in object.h over time -> probs with CXX?
tom barket
thomas_barket at yahoo.com
Fri Jun 29 04:24:40 EDT 2001
hello,
i am trying to install the CXX-5.0b Demo with the new version 2.1 of
python, and in spite of the completely simple installation process
("python setup.py install"), I came across some errors. Specifically,
the compiler complained that PyTypeObject is missing 4 data members:
tp_xxx5, tp_xxx6, tp_xxx7, and tp_xxx8 (see below). So I looked up
the definition of PyTypeObject in object.h and found that these data
members are indeed absent. However, when i inspected object.h for
python version 2.01, I found that tp_xxx7 and tp_xxx8 are there, and
in python version 1.6, all four are there. So it seems that these
data members have been replaced over time (it looks like by
tp_traverse, tp_clear, tp_richcompare, and tp_weaklistoffset), which
is causing CXX (apparently orignally written for python 1.6) to fail.
If all this is correct, what changes do i need to make to CXX-5.0b
work with python 2.1? If this is available somewhere, I apologize in
advance. I am fairly new to python, but i have looked around quite a
bit and have come up with no answers yet. TIA.
Tom
thomas_barket at yahoo.com
C:\Python21\etc\CXX\cxx_extensions.cxx(292) : error C2039: 'tp_xxx5' :
is not a member of '_typeobject'
C:\Python21\etc\CXX\cxx_extensions.cxx(293) : error C2039: 'tp_xxx6' :
is not a member of '_typeobject'
C:\Python21\etc\CXX\cxx_extensions.cxx(294) : error C2039: 'tp_xxx7' :
is not a member of '_typeobject'
C:\Python21\etc\CXX\cxx_extensions.cxx(295) : error C2039: 'tp_xxx8' :
is not a member of '_typeobject'
More information about the Python-list
mailing list